Skip to content

Instantly share code, notes, and snippets.

@hemusyl
Created September 25, 2016 07:18
Show Gist options
  • Save hemusyl/aff7ee1f98440f31588ac24cc688ad08 to your computer and use it in GitHub Desktop.
Save hemusyl/aff7ee1f98440f31588ac24cc688ad08 to your computer and use it in GitHub Desktop.
Responsive CSS Code
/**
* Responsive Layout
*/
/* Normal Desktop: 992px. */
@media only screen and (min-width: 992px) and (max-width: 1200px) {
.column {
width: 972px;
}
}
/* Tablet Layout: 768px. */
@media only screen and (min-width: 768px) and (max-width: 991px) {
h2 {
font-size: 20px;
}
}
/* Mobile Layout: 320px. */
@media only screen and (max-width: 767px) {
h2, h2 {
font-size: 12px;
}
}
/* Wide Mobile Layout: 480px. */
@media only screen and (min-width: 480px) and (max-width: 767px) {
h2, h2 {
font-size: 13px;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment