CSS3 Selectors Cheat Sheet

arp14 CSS Tags: , , , 1

http://www.w3.org/TR/css3-selectors/

*
E[foo]
E[foo="bar"]
E[foo~="bar"]
E[foo^="bar"]

E[foo$="bar"]
E[foo*="bar"]
E[hreflang|="en"]
E:root
E:nth-child(n)
E:nth-last-child(n)
E:nth-of-type(n)
E:nth-last-of-type(n)
E:first-child
E:last-child
E:first-of-type
E:last-of-type
E:only-child
E:only-of-type
E:empty
E:link
E:visited
E:active
E:hover
E:focus
E:target
E:lang(fr)
E:enabled
E:disabled
E:checked
E::first-line
E::first-letter
E::selection
E::before
E::after
E.warning#myid
E:not(s)
> F
+ F
~ F {color: red;}

One thought on “CSS3 Selectors Cheat Sheet

Leave a Reply

Note: Your email address will not be published. Required fields are marked *