Skip to content

Instantly share code, notes, and snippets.

@planetoftheweb
Created February 12, 2014 17:37
Show Gist options
  • Save planetoftheweb/8960511 to your computer and use it in GitHub Desktop.
Save planetoftheweb/8960511 to your computer and use it in GitHub Desktop.
Responsive Image Grid and Boostrap Jumbotron
header .jumbotron {
background: url('http://planetoftheweb.com/images/bridge.jpg') no-repeat center center;
background-position: center center;
width: 100%;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}
.clearfix:before, .clearfix:after { content: " "; display: table; }
.clearfix:after { clear: both; }
.clearfix { *zoom: 1; }
.imagegrid ul, .imagegrid li {
margin: 0;
padding: 0;
list-style: none;
}
.imagegrid li {
width: 30%;
min-width: 60px;
max-width: 100px;
float: left;
}
.imagegrid li img {
width: 100%;
padding: 3%;
-webkit-border-radius: 12px;
border-radius: 10px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment