Skip to content

Instantly share code, notes, and snippets.

@CITguy
Last active April 22, 2020 01:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CITguy/9eec7276476fad2e967e2f1042349581 to your computer and use it in GitHub Desktop.
Save CITguy/9eec7276476fad2e967e2f1042349581 to your computer and use it in GitHub Desktop.
/*
Reset the box-sizing
https://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/
*/
html {
box-sizing: border-box;
}
*,
*::before,
*::after {
box-sizing: inherit;
}
/*
HTML5 display reset for older browsers
- Unnecessary if targeting evergreen (non-IE) browsers.
- Any major browser released since 2015 supports these elements.
*/
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
menu,
nav,
section {
display: block;
}
template {
display: none;
}
/*
html5 attribute reset for older browsers
- IE11 and evergreen browsers support this attribute
*/
[hidden] {
display: none !important;
}
small {
font-size: 0.75em;
}
caption {
padding: 0;
text-align: left;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment