Skip to content

Instantly share code, notes, and snippets.

@jgthms
Created August 23, 2016 21:56
Show Gist options
  • Save jgthms/b0b2af4983ebc957bc03f74d5805c160 to your computer and use it in GitHub Desktop.
Save jgthms/b0b2af4983ebc957bc03f74d5805c160 to your computer and use it in GitHub Desktop.
Mini CSS Reset
/* Blocks */
html,
body,
p,
ol,
ul,
li,
dl,
dt,
dd,
blockquote,
figure,
fieldset,
legend,
textarea,
pre,
iframe,
hr,
h1,
h2,
h3,
h4,
h5,
h6 {
margin: 0;
padding: 0;
}
/* Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
font-size: 100%;
font-weight: normal;
}
/* Form */
button,
input,
select,
textarea {
margin: 0;
}
/* Box sizing */
html {
box-sizing: border-box;
}
*,
*:before,
*:after {
box-sizing: inherit;
}
/* Media */
img,
embed,
object,
audio,
video, {
height: auto;
max-width: 100%;
}
/* Iframe */
iframe {
border: 0;
}
/* Table */
table {
border-collapse: collapse;
border-spacing: 0;
}
td,
th {
padding: 0;
text-align: left;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment