Skip to content

Instantly share code, notes, and snippets.

@felquis
Forked from gpessia/minimal-css-reset.css
Last active April 17, 2016 14:13
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save felquis/1278d5f62dcc5f606bbb to your computer and use it in GitHub Desktop.
Save felquis/1278d5f62dcc5f606bbb to your computer and use it in GitHub Desktop.
Minimal CSS Reset, resets margins, paddings and line-heights of every element needed, please adjust the selector below if you need paddings in lists
/**
Minimal CSS Reset
reset margins, paddings and line-heights of every element needed
if you need paddings into li, dl, dd elements, just remove them
from the selector below
Felquis Gimenes
MIT Licence
https://gist.github.com/felquis/1278d5f62dcc5f606bbb
*/
html { box-sizing: border-box; }
body { font-size: 16px; }
*, *:before, *:after { box-sizing: inherit; }
ol, ul { padding: 0; list-style-type: none }
body, h1, h2, h3, h4, h5, h6, p, ol, li, ul, dl, dd, blockquote, figure,
hr, pre {
margin: 0;
line-height: 1em
}
hr {
border-style: none;
background: #19cade;
height: 0.125em;
}
/* Minimal CSS Reset - https://gist.github.com/felquis/1278d5f62dcc5f606bbb */html{box-sizing:border-box}body{font-size:16px}*,:before,:after{box-sizing:inherit}ol,ul{padding:0;list-style-type:none}body,h1,h2,h3,h4,h5,h6,p,ol,li,ul,dl,dd,blockquote,figure,hr,pre{margin:0;line-height:1em}hr{border-style:none;background:#19cade;height:.125em}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment