Skip to content

Instantly share code, notes, and snippets.

@mrmrs
Created February 20, 2013 08:17
Show Gist options
  • Save mrmrs/4993871 to your computer and use it in GitHub Desktop.
Save mrmrs/4993871 to your computer and use it in GitHub Desktop.
My defaults to override the browser defaults. CSS is so weird.
/*
DEFAULTS
*/
html, body, div, span,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, address, cite, code,
del, dfn, img, ins, kbd, q, samp,
small, sub, sup, var,
u, b, i, em, strong,
dl, dt, dd,
ol, ul, li,
fieldset, input, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
section, article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, summary,
object, iframe, time, mark, audio, video {
padding:0;
margin:0;
border:0;
font-size:100%;
font:inherit;
vertical-align:baseline;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
display: block;
}
ol, ul {
list-style: none;
}
i,em {font-style:italic;}
strong,b {font-weight:bold;}
blockquote, q {
quotes: none;
}
blockquote:before,
blockquote:after,
q:before,
q:after {
content: '';
content: none;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment