Skip to content

Instantly share code, notes, and snippets.

@srikarg
Last active November 3, 2019 17:45
Show Gist options
  • Save srikarg/afa819e39791ad3f9fe0 to your computer and use it in GitHub Desktop.
Save srikarg/afa819e39791ad3f9fe0 to your computer and use it in GitHub Desktop.
Boilerplate CSS.
*,
*:before,
*:after {
box-sizing: border-box;
padding: 0;
margin: 0;
}
html,
body {
height: 100%;
}
html {
font-size: 62.5%;
}
body {
font: 300 1.8rem/1.6875 sans-serif;
}
h1,
h2,
h3,
h4,
h5,
h6,
ul,
ol,
blockquote,
p {
margin: 0 0 2rem 0;
}
ul,
ol {
padding-left: 4rem;
}
h1,
h2,
h3,
h4,
h5,
h6 {
font-weight: 300;
}
h1 {
font-size: 3.6rem;
}
h2 {
font-size: 3.2rem;
}
h3 {
font-size: 2.6rem;
}
h4 {
font-size: 2.4rem;
}
img {
display: block;
width: 100%;
margin: 0 auto 2rem auto;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment