Aims:
Browser | Layout engine |
---|---|
IE | Trident |
Firefox | Gecko |
Opera | Presto |
Chrome | WebKit |
Safari |
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section { display: block; }
normalize.css
border-radius
is CSS3
p { border-style: 1px solid blue; border-radius: 15px; }…if a user's browser doesn't support
border-radius
, it ignores it —users will see square corners
Layout engine | Browsers | Prefix |
---|---|---|
Gecko | Firefox | -moz- |
WebKit | Chrome, Safari, iPhone & Android | -webkit- |
Presto | Opera, Opera Mini | -o- |
Trident | IE | -ms- |
KHTML | Konqueror | -khtml- |
p { border-style: 1px solid blue; -moz-border-radius: 15px; -webkit-border-radius: 15px; border-radius: 15px; }
p { border-style: 1px solid blue; -moz-border-radius-topright: 24px; -moz-border-radius-topleft: 24px; -webkit-border-top-right-radius: 24px; -webkit-border-top-left-radius: 24px; border-top-right-radius: 24px; border-top-left-radius: 24px; }What do you notice?
<link rel="stylesheet" type="text/css" href="styles.css" /> <!--[if IE 6]> <link rel="stylesheet" type="text/css" href="ie6_only_styles.css" /> <![endif]-->
p { ...CSS for IE6 here } html > body p { ...CSS for other browsers here }
<ol reversed>
should reverse number the items. Most browsers don't do this yet but there is
a polyfill that fixes this