Skip to content

Instantly share code, notes, and snippets.

@k-maru
Created January 9, 2014 12:18
Show Gist options
  • Save k-maru/8333240 to your computer and use it in GitHub Desktop.
Save k-maru/8333240 to your computer and use it in GitHub Desktop.
reset css for html5
html, body, body div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, abbr, address, cite, code, del, dfn, em, img, ins, kbd, q, samp, small, strong, sub, sup, var, b, i, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, figure, footer, header, hgroup, menu, nav, section, time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
outline: 0;
vertical-align: baseline;
background: transparent;
color: #444444; /**/
}
html {
font-size: 75%;
}
body {
font-family: sans-serif; /**/
overflow: hidden;
-moz-user-select: -moz-none;
-ms-user-select: none;
-webkit-user-select: none;
-o-user-select: none;
user-select: none;
}
html, body {
width: 100%;
height: 100%;
}
article, aside, figure, footer, header, hgroup, nav, section {display: block;}
table {border-collapse: collapse; border-spacing: 0;}
th {font-weight: normal; vertical-align: top;}
td {font-weight: normal; vertical-align: top;}
li {
list-style: none;
}
.clearfix:before, .clearfix:after { content: "\0020"; display: block; height: 0; overflow: hidden; }
.clearfix:after { clear: both; }
.clearfix { zoom: 1; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment