Skip to content

Instantly share code, notes, and snippets.

@davidalves1
Last active May 30, 2023 22:22
Show Gist options
  • Save davidalves1/8d432bae4c9c2087f62fbb85ad8d5a58 to your computer and use it in GitHub Desktop.
Save davidalves1/8d432bae4c9c2087f62fbb85ad8d5a58 to your computer and use it in GitHub Desktop.
A simple css reset to use on most HTML projects
*, html, body {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html {
font-size: 62.5%; /* O font-size base passa a ser múltiplo de 10px, ou seja, 1rem === 10px*/
}
body {
font-family: Helvetica, sans-serif;
}
ul {
list-style: none;
}
a {
text-decoration: none;
}
img {
display: block;
max-width: 100%;
}
input:focus {
outline:0;
}
h1 {
font-size: 3.6rem;
}
h2 {
font-size: 2.8rem;
}
h3 {
font-size: 2.4rem;
}
h4 {
font-size: 2rem;
}
h5 {
font-size: 1.8rem;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment