Skip to content

Instantly share code, notes, and snippets.

@whippingdot
Last active January 29, 2022 15:29
Show Gist options
  • Save whippingdot/82f9ec01dc9151ce9022644a98af0b6f to your computer and use it in GitHub Desktop.
Save whippingdot/82f9ec01dc9151ce9022644a98af0b6f to your computer and use it in GitHub Desktop.
This is a gist for CSS. It is called a CSS Reset and mine was made by Josh Comeau (check out his website. It is beautiful)
*, *::before, *::after {
box-sizing: border-box;
}
* {
margin: 0;
}
html, body {
height: 100%;
}
body {
line-height: 1.5;
-webkit-font-smoothing: antialiased;
}
img, picture, video, canvas, svg {
display: block;
max-width: 100%;
}
input, button, textarea, select {
font: inherit;
}
p, h1, h2, h3, h4, h5, h6 {
overflow-wrap: break-word;
hyphens: auto;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment