Skip to content

Instantly share code, notes, and snippets.

@supervoron1
Last active October 18, 2019 06:33
Show Gist options
  • Save supervoron1/c91bb7e5696b03fd0e09c262743bd0c6 to your computer and use it in GitHub Desktop.
Save supervoron1/c91bb7e5696b03fd0e09c262743bd0c6 to your computer and use it in GitHub Desktop.
section, header, footer {
padding: 0 15px;
}
@media (min-width: 575.98px){
section, header, footer {
padding: 0 calc(50vw - 270px);
}
}
@media (min-width: 767.98px){
section, header, footer {
padding: 0 calc(50vw - 360px);
}
}
@media (min-width: 991.98px) {
section, header, footer {
padding: 0 calc(50vw - 480px);
}
}
@media (min-width: 1199.98px){
section, header, footer {
padding: 0 calc(50vw - 590px);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment