Created
March 6, 2012 21:36
-
-
Save KnightAlex/1989091 to your computer and use it in GitHub Desktop.
CSS: css reset (Eric Meyer)
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
/* =Reset default browser CSS. Based on work by Eric Meyer: http://meyerweb.com/eric/tools/css/reset/index.html | |
-------------------------------------------------------------- */ | |
html, body, div, span, applet, object, iframe, | |
h1, h2, h3, h4, h5, h6, p, blockquote, pre, | |
a, abbr, acronym, address, big, cite, code, | |
del, dfn, em, font, ins, kbd, q, s, samp, | |
small, strike, strong, sub, sup, tt, var, | |
dl, dt, dd, ol, ul, li, | |
fieldset, form, label, legend, | |
table, caption, tbody, tfoot, thead, tr, th, td { | |
border: 0; | |
font-family: inherit; | |
font-size: 100%; | |
font-style: inherit; | |
font-weight: inherit; | |
margin: 0; | |
outline: 0; | |
padding: 0; | |
vertical-align: baseline; | |
} | |
:focus {/* remember to define focus styles! */ | |
outline: 0; | |
} | |
body { | |
background: #3d3d3d; | |
line-height: 1; | |
} | |
ol, ul { | |
list-style: none; | |
} | |
table {/* tables still need 'cellspacing="0"' in the markup */ | |
border-collapse: separate; | |
border-spacing: 0; | |
} | |
caption, th, td { | |
font-weight: normal; | |
text-align: left; | |
} | |
blockquote:before, blockquote:after, | |
q:before, q:after { | |
content: ""; | |
} | |
blockquote, q { | |
quotes: "" ""; | |
} | |
a img { | |
border: 0; | |
} | |
article, aside, details, figcaption, figure, | |
footer, header, hgroup, menu, nav, section { | |
display: block; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment