+ 2

What is pseudo element?

14th Jul 2016, 11:54 AM
Manu
3 odpowiedzi
+ 5
A CSS pseudo-element is used to style specified parts of an element. For example, it can be used to: Style the first letter, or line, of an element. Insert content before, or after, the content of an element.
14th Jul 2016, 12:08 PM
Awele Omeligwe
Awele Omeligwe - avatar
+ 5
p::first-line { color: #ff0000; font-variant: small-caps; }
14th Jul 2016, 12:09 PM
Awele Omeligwe
Awele Omeligwe - avatar
+ 5
after p::after Insert something after the content of each <p> element ::before p::before Insert something before the content of each <p> element ::first-letter p::first-letter Selects the first letter of each <p> element ::first-line p::first-line Selects the first line of each <p> element ::selection p::selection Selects the portion of an element that is selected by a user
14th Jul 2016, 12:14 PM
Awele Omeligwe
Awele Omeligwe - avatar