1st of type
p:first-of-type {
font-family:verdana;
color:#3CF
}
the 1st p will get formatted
last-of-type {
}
formats the last of the type
only-of-type {
}
:root {
background-color:purple;
border:2px solid:red;
}
all around the document
Empty
:empty {
background-color:red
border:2px solid
}
:target {
}
enabled
input:disabled+span { color:grey; (when disabled)
font-family:verdana;
font-size:1em
}
input:enabled+span { (when enabled)
color:green;
font-family:verdana;
font-size:1em
}
checked
input:checked+span { (now when an element is checked it will go blue)
color:blue;
font-family:verdana;
font-size:1em
}
* (all
not element
p*:not(q) (everything thats not in the q element will go red)
{
background:red;
:
Tuesday, September 1, 2009
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment