Skip to content

Instantly share code, notes, and snippets.

@curtiswilkinson
Created October 21, 2015 04:25
Show Gist options
  • Save curtiswilkinson/d4d84caacb1851cdaf46 to your computer and use it in GitHub Desktop.
Save curtiswilkinson/d4d84caacb1851cdaf46 to your computer and use it in GitHub Desktop.
media queries for thumb rows of 5
@media (min-width:1200px) {
.home-thumb {
width:20%;
float:left;
}
}
@media (min-width:992px) and (max-width:1199px) {
.home-thumb {
width:25%;
float:left;
}
}
@media (min-width:769px) and (max-width:991px) {
.home-thumb {
width:33.33%;
float:left;
}
}
@media (min-width:480px) and (max-width:768px) {
.home-thumb {
width:50%;
float:left;
}
}
@media (min-width:380px) and (max-width:479px){
.home-thumb {
width:66.66%;
margin-left:auto;
margin-right:auto;
}
}
@media (min-width:1px) and (max-width:379px) {
.home-thumb {
width:75.66%;
margin-left:auto;
margin-right:auto;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment