1.

How to use pseudo-elements in CSS3?

Answer»

In CSS, pseudo-ELEMENT is used to style detailed and SPECIFIC parts of an element.

For EXAMPLE, it may be used to:
  • Style an element, LETTER or line.
  • Insert content in an element before or after the content within the element.

It is a keyword added to a selector that lets you in styling a specific part of the SELECTED element(s).

For example, ::first-line is used to change the font of the first line of a paragraph below.

p::first-line {
   color: blue;
   text-transform: uppercase;
}



Discussion

No Comment Found