Skip to content

Instantly share code, notes, and snippets.

@pciapcib
Last active April 11, 2016 09:58
Show Gist options
  • Save pciapcib/51a6e4346e5c9fa43b32 to your computer and use it in GitHub Desktop.
Save pciapcib/51a6e4346e5c9fa43b32 to your computer and use it in GitHub Desktop.
CSS reset
/*
RESET STYLESHEET
*/
* {
box-sizing: border-box;
}
html {
font-size: 62.5%;
}
body {
font-family: 'Microsoft Yahei', Arial, Helvetica, sans-serif;
}
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
strong,
em,
a,
img,
dl,
dt,
dd,
ol,
ul,
li,
form,
label,
table,
caption,
thead,
tbody,
tfoot,
tr,
th,
td {
font-family: inherit;
font-size: 100%;
margin: 0;
padding: 0;
vertical-align: baseline;
border: 0;
outline: 0;
}
body {
line-height: 1;
}
ol,
ul {
list-style: none;
}
table {
border-spacing: 0;
border-collapse: separate;
vertical-align: middle;
}
caption,
th,
td {
font-weight: normal;
text-align: left;
vertical-align: middle;
}
a img {
border: none;
}
header,
nav,
section,
hgroup,
article,
menu,
summary,
aside,
footer, {
font-family: inherit;
font-size: 100%;
font-weight: inherit;
font-style: inherit;
display: block;
margin: 0;
padding: 0;
vertical-align: baseline;
border: 0;
outline: 0;
}
video
audio, {
display: inline-block;
*display: inline;
*zoom: 1;
}
a {
text-decoration: none;
}
.clearfix:after {
display: block;
clear: both;
height: 0;
content: '\200B';
}
.clearfix {
*zoom: 1;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment