Skip to content

Instantly share code, notes, and snippets.

@robinrendle robinrendle/reset.css
Last active Aug 27, 2019

What would you like to do?
A CSS reset with sane defaults
/*Box sizing (the nuclear option) */
*, *:before, *:after {
-ms-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
/* Fix font rendering defaults */
html, button {
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
body {
font-size: 100%;
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center, input,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, section, summary,
time, mark, audio, video {
margin: 0;
padding: 0;
/* IE fixes for HTML5 elements */
article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section, summary {
display: block;
table {
border-collapse: collapse;
border-spacing: 0;
caption, th, td {
text-align: left;
font-weight: normal;
vertical-align: middle;
strong, b, mark{
em, i, cite, q, address, dfn, var{
a, u, ins{
pre, code, samp, kbd{
iframe {
width: 100%;
img {
max-width: 100%;
height: auto;
border: none;
button {
cursor: pointer;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.