HTML5 Presentation
HTML5 Presentation
HTML5 Presentation
<!DOCTYPE html>
<style>
article, aside, dialog, figure, footer, header,
hgroup, menu, nav, section { display: block; }
</style>
• CSS3 Hooks
E[foo^=‘bar’] an E element whose "foo" attribute value begins exactly with the string "bar"
E[foo$=‘bar’] an E element whose "foo" attribute value ends exactly with the string "bar"
E[foo*=‘bar’] an E element whose "foo" attribute value contains the substring "bar"
The :nth-of-type pseudo-class works just like the :nth-child, with the difference that it
E:nth-of-type(n) only counts children that match the element in the selector.
You guessed it! The :nth-last-of-type pseudo-class can be used exactly like the
E:nth-last-of-type(n) aforementioned :nth-last-child, but this time, it will only target the elements
that match our selector:
http://www.smashingmagazine.com/2009/08/17/taming-advanced-css-selectors/
tr:nth-child(2n+1) {...}
Match Odd number rows
tr:nth-child(odd) {...}
tr:nth-child(2n-1) {...}
Match Even number rows
tr:nth-child(even) {...}
• Square corners
• Multi backgrounds...
nope..
IE7.js http://code.google.com/p/ie7-js/