Skip to content

Instantly share code, notes, and snippets.

@kartiknair
Created May 25, 2020 16:44
Show Gist options
  • Save kartiknair/d66208bbc09de1083f6dd2a59f305925 to your computer and use it in GitHub Desktop.
Save kartiknair/d66208bbc09de1083f6dd2a59f305925 to your computer and use it in GitHub Desktop.
html,
body {
line-height: 1.5; // <- this will depend on your font
}
main {
width: 50%;
margin: 6% 25%;
}
@media (max-width: 768px) {
main {
width: 80%;
margin: 15% 10%;
}
}
@media (max-width: 350px) {
main {
width: 90%;
margin: 15% 5%;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment