Tag Archives: CSS Pseudo-elements

CSS Pseudo-elements

CSS Pseudo-elements CSS pseudo-elements are used to add special effects to some selectors. Syntax The syntax of pseudo-elements: selector:pseudo-element {property:value;} CSS classes can also be used with pseudo-elements: selector.class:pseudo-element {property:value;} The :first-line Pseudo-element The “first-line” pseudo-element is used to add a special style to the first line of a text. In the following example the […]