Created
August 23, 2016 21:56
-
-
Save jgthms/b0b2af4983ebc957bc03f74d5805c160 to your computer and use it in GitHub Desktop.
Mini CSS Reset
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
/* 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