Most voted "pseudo-classes" questions
A CSS pseudo-class is a keyword added to selectors that specifies a special state of the selected element. For example :Hover will be applied a style when the user hovers over the element specified by the selector.
Learn more…12 questions
Sort by count of
-
6
votes1
answer1139
viewsWhat is the usefulness of :host, :host() and :host-context()
What is the usefulness of pseudo classes :host, :host() and :host-context()? If possible with some practical example
-
5
votes1
answer75
viewsWhy is :first-Child a pseudo class?
I’m giving a training in CSS, and even after reading and listening on the topic I’m still having some difficulty understanding why :first-Child is a pseudo class and not a pseudo element, like…
-
5
votes2
answers257
viewsBehaviour of the pseudo-class :Nth-Child
Unfortunately the question marked as "possible duplicate" (and its responses) address something else, specifically the functioning of variable n in formulas passed in the :nth-child(), which neither…
-
3
votes2
answers735
viewsIs there a css selector that selects elements through your text?
I want to add background the row of a table in which one of the columns is: Value 1. I tried with the pseudo-class contains and by innerHTML, but all without success. Code: table tr td…
-
3
votes1
answer755
viewsHow to focus an element
In CSS it would be something like this: div { display: none; } div:active { display: block; } And some user action would give focus to this div by javascript I know I can do adding and removing a…
-
1
votes2
answers62
viewsUse of Pseudo Classes in CSS
I know that pseudo classes are: :link, :visited, :hover and :active, but I would like to know if it has how to use the pseudo classes through class, id or inline. Sometimes I don’t want to use one…
-
1
votes1
answer127
viewsUse of Pseudo-Class :link
I’m using Pseudo Class for links, I understand the concept and use of a:hover a:active and a:visited , but I can’t understand the a:link. What is the use of it? If possible I would like a practical…
-
1
votes1
answer139
viewsWhat is the difference between the pseudo class :root and the * {} in CSS?
Do the two have the same function? Both generally define certain procedures. When I should use one or the other?
-
1
votes1
answer22
viewsApply Border-bottom to link but not to image
I have a problem that seems simple, but I haven’t found a solution. I created a link style that instead of having a text-Decoration underline, I want a bottom edge. The problem is that if an image…
-
0
votes1
answer43
viewsAligns pseudo element to direct in the navigation bar
I’m having a hard time aligning the :before bar on the right. Can anyone help me with that? I’m using this code: .nav-romeu li:before { content: ''; width: 50px; height: 2px; background: #000;…
-
0
votes3
answers327
views:first-Child no . active Owl-Carousel does not work
Good morning! I am using the Owl-Carousel plugin that has several items. I need to get the first and last item on the first page, but I’m not getting it. Carousel renders this way: <div…
-
0
votes1
answer34
viewsUse of pseudo-elements ::after in a DIV simulating an INPUT with LABEL - Pseudo-element overwrites the cursor. How to do not overwrite the cursor?
I created an editable DIV by simulating an INPUT with a LABEL using the pseudo-element ::after and the pseudo-class :Empty. LABEL (which is actually a pseudo-element ::after with the content equal…