Created
January 28, 2010 00:02
-
-
Save nathansmith/288292 to your computer and use it in GitHub Desktop.
Reset for HTML4 / HTML5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* `XHTML, HTML4, HTML5 Reset | |
----------------------------------------------------------------------------------------------------*/ | |
a, | |
abbr, | |
acronym, | |
address, | |
applet, | |
article, | |
aside, | |
audio, | |
b, | |
big, | |
blockquote, | |
body, | |
canvas, | |
caption, | |
center, | |
cite, | |
code, | |
dd, | |
del, | |
details, | |
dfn, | |
dialog, | |
div, | |
dl, | |
dt, | |
em, | |
embed, | |
fieldset, | |
figcaption, | |
figure, | |
font, | |
footer, | |
form, | |
h1, | |
h2, | |
h3, | |
h4, | |
h5, | |
h6, | |
header, | |
hgroup, | |
hr, | |
html, | |
i, | |
iframe, | |
img, | |
ins, | |
kbd, | |
label, | |
legend, | |
li, | |
mark, | |
menu, | |
meter, | |
nav, | |
object, | |
ol, | |
output, | |
p, | |
pre, | |
progress, | |
q, | |
rp, | |
rt, | |
ruby, | |
s, | |
samp, | |
section, | |
small, | |
span, | |
strike, | |
strong, | |
sub, | |
summary, | |
sup, | |
table, | |
tbody, | |
td, | |
tfoot, | |
th, | |
thead, | |
time, | |
tr, | |
tt, | |
u, | |
ul, | |
var, | |
video, | |
xmp { | |
border: 0; | |
margin: 0; | |
padding: 0; | |
font-size: 100%; | |
} | |
html, | |
body { | |
height: 100%; | |
} | |
article, | |
aside, | |
details, | |
figcaption, | |
figure, | |
footer, | |
header, | |
hgroup, | |
menu, | |
nav, | |
section { | |
/* | |
Override the default (display: inline) for | |
browsers that do not recognize HTML5 tags. | |
IE8 (and lower) requires a shiv: | |
http://ejohn.org/blog/html5-shiv | |
*/ | |
display: block; | |
} | |
b, | |
strong { | |
/* | |
Makes browsers agree. | |
IE + Opera = font-weight: bold. | |
Gecko + WebKit = font-weight: bolder. | |
*/ | |
font-weight: bold; | |
} | |
img { | |
font-size: 0; | |
vertical-align: middle; | |
/* | |
For IE. | |
http://css-tricks.com/ie-fix-bicubic-scaling-for-images | |
*/ | |
-ms-interpolation-mode: bicubic; | |
} | |
li { | |
/* | |
For IE6 + IE7. | |
*/ | |
display: list-item; | |
} | |
table { | |
border-collapse: collapse; | |
border-spacing: 0; | |
} | |
th, | |
td, | |
caption { | |
font-weight: normal; | |
vertical-align: top; | |
text-align: left; | |
} | |
svg { | |
/* | |
For IE9. | |
*/ | |
overflow: hidden; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
MIT = Use for whatever you want, commercial or otherwise -- just give credit.
GPL = Anything you release as a derivative work must also be free, and GPL.
Under a dual license, someone can use the work as "MIT" and not have to abide by GPL's re-release stipulations. GPL is nice because it forces open source to stay as such, but it's a "poison pill" if derivative works are included in a larger commercial product, as technically it GPL's the whole thing.
At least, that's my non-lawyerly take on it how things work.