- Selector:Pseudo Class
Selector::Pseudo Element
:link
:visited
:hover
:active
:first-letter
:first-line
:after
:before
- ::first-letter applies to the first letter
of a block of text ¡
::first-line applies to the first line of text. ¡
::before defines whatever goes before
a specific tag
::after defines whatever comes after
a specific tag -
h1 {
color:#333;
text-shadow: 0 0 2px rgba(0,0,0,0.5);
font-family: Georgia, "Times New Roman", Times, serif;
}
H1::before {
content: url("images/curlique-L.png");
margin-right: 5px;
}
h1::after {
content: url("images/curlique-R.png");
margin-left: 5px;
}
- Look at some of the uses on this page
- Where is "Stuff" generated?