Questions tagged as 'pseudo-classes'

1
answer

What is the utility of: host,: host () and: host-context ()

What is the utility of pseudo classes :host , :host() and :host-context() ? If possible with some practical example     
asked by 22.06.2018 / 20:18
1
answer

Why is: first-child a pseudo class?

I'm giving a CSS training, and even after reading and listening on the theme I'm still having some difficulties in realizing why: first-child is a pseudo class and not a pseudo element such as :: first-line, :: first-letter, etc. Some example...
asked by 25.10.2017 / 21:30
2
answers

Pseudo-class behavior: nth-child

   Unfortunately the question marked as "possible duplicate" (and your   answers) address something else, specifically the   variable n in formulas passed in :nth-child() , which does not contemplate and do not answer the doubts exp...
asked by 31.12.2018 / 20:31
2
answers

Is there a css selector that selects elements through your text?

I want to add background to the row of a table where one of its columns is: Value 1 . I tried using pseudo-class contains and innerHTML but all to no avail. Code: table tr td [innerHTML="Valor 1"]{ background: red;...
asked by 27.03.2017 / 18:49
1
answer

Focusing on an element

In CSS it would look something like this: div { display: none; } div:active { display: block; } And some user action would focus on this div by javascript I know what I can do by adding and removing a class / attribute however I...
asked by 28.05.2018 / 00:36
2
answers

Using Pseudo Classes in CSS

I know that the pseudo classes are: :link , :visited , :hover and :active , but I'd like to know if you can use pseudo classes through class , id or inline . Sometimes I do not want to use :hover on all h1...
asked by 26.08.2018 / 03:44
1
answer

Pseudo-Class Usage: link

I'm using the Pseudo Class for links, I understand the concept and usage of a:hover a:active and a:visited , but I can not understand a:link . What is the use of it? If possible I would like a practical example of this clas...
asked by 26.08.2018 / 15:31
3
answers

: owl-carousel first-child no .active does not work

Good morning! I'm using the owl-carousel plugin that has several items. I need to get the first and last items from the first page, but I can not. The carousel renders like this: <div class="owl-stage"> <div class="owl-item c...
asked by 11.02.2018 / 14:28
1
answer

Aligns pseudo element to forward in the navigation bar

I'm having a hard time aligning the: before bar on the right. Can anyone help me with this? I'm using this code: .nav-romeu li:before { content: ''; width: 50px; height: 2px; background: #000; position: absolute; top...
asked by 04.08.2017 / 16:27