Basic use
example.css
p::first-line { font-weight: 600; }
::selection { background: #fde68a; }
Pseudo-elements target parts of elements that are not standalone DOM nodes, such as first lines or generated boxes.
p::first-line { font-weight: 600; }
::selection { background: #fde68a; }p::first-line { font-weight: 600; }
::selection { background: #fde68a; }p::first-line { font-weight: 600; }
::selection { background: #fde68a; }Keep learning CSS.
CODETOFUN NEWS
Get the latest IT news, programming updates, and technology trends directly on your phone.
Your daily dose of tech, straight to your feed.
2 people found this page helpful