Skip to content

Instantly share code, notes, and snippets.

@CaptainN
Last active December 6, 2017 18:25
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CaptainN/48a41e825afb3692033b to your computer and use it in GitHub Desktop.
Save CaptainN/48a41e825afb3692033b to your computer and use it in GitHub Desktop.
Simple CSS Reset
/*---------------/
/ simple reset /
/---------------*/
html, body, ul, ol, li, form, fieldset, legend {
margin: 0;
padding: 0;
}
li { list-style: none; }
body {
box-sizing: border-box;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
-ms-overflow-style: -ms-autohiding-scrollbar;
text-decoration-skip: ink;
-webkit-tap-highlight-color: rgba(0,0,0,0);
-webkit-tap-highlight-color: transparent;
}
*, *:before, *:after {
box-sizing: inherit;
}
:first-child {
margin-top: 0;
}
:last-child {
margin-bottom: 0;
}
fieldset, img { border: 0; }
legend { color: #000; }
sup { vertical-align: text-top; }
sub { vertical-align: text-bottom; }
table {
border-collapse: collapse;
border-spacing: 0;
}
caption, th, td {
text-align: left;
vertical-align: top;
font-weight: normal;
}
input, textarea, select {
font-size: 110%;
line-height: 1.1;
}
abbr, acronym {
border-bottom: .1em dotted;
cursor: help;
}
embed, object {
display: inline-block;
outline: none;
}
@WraithKenny
Copy link

You don't even need the prefixes anymore, so this is just a good css reset now!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment