Skip to content

Instantly share code, notes, and snippets.

@Fobiya
Last active July 15, 2017 16:40
Show Gist options
  • Save Fobiya/01601841bd2b4be9b2b6ec4dac02ea36 to your computer and use it in GitHub Desktop.
Save Fobiya/01601841bd2b4be9b2b6ec4dac02ea36 to your computer and use it in GitHub Desktop.
SCSS
header{
height: 1482px;
background: url(..) no-repeat top center;
@media only screen and (max-width: 1199px) and (min-width: 993px) {
background: url(..) no-repeat top center;
height: 1482px;
}
@media only screen and (max-width: 992px) and (min-width: 769px) {
background: url(..) no-repeat top center;
height: auto;
padding: 50px 0;
text-align: center;
background-size: cover
}
@media only screen and (max-width: 768px) and (min-width: 200px) {
background: url(..) no-repeat top center;
height: auto;
padding: 30px 0;
text-align: center;
background-size: cover;
}
}
@media only screen and (max-width: 1199px) and (min-width: 993px) {}
@media only screen and (max-width: 992px) and (min-width: 769px) { }
@media only screen and (max-width: 768px) and (min-width: 541px) { }
@media only screen and (max-width: 540px) and (min-width: 200px) { }
@Fobiya
Copy link
Author

Fobiya commented Jun 29, 2017

@media only screen and (max-width: 1199px) and (min-width: 993px) {}
@media only screen and (max-width: 992px) and (min-width: 769px) { }
@media only screen and (max-width: 768px) and (min-width: 541px) { }
@media only screen and (max-width: 540px) and (min-width: 200px) { }

@Fobiya
Copy link
Author

Fobiya commented Jul 15, 2017

margin-left: auto;
margin-right: auto;
text-align: center;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment