Skip to content

Instantly share code, notes, and snippets.

@marcolago
Created November 23, 2012 17:28
Show Gist options
  • Save marcolago/4136567 to your computer and use it in GitHub Desktop.
Save marcolago/4136567 to your computer and use it in GitHub Desktop.
FluidSquares in a wrapper
/**
* FluidSquares in a wrapper
* for Levan Khutsishvili
*/
body {
background-color: #00ffff;
}
#someotherdiv {
background-color: #ff0000;
}
#gallery {
width: 80%;
margin: 0 auto;
background-color: #ffff00;
/* clear fix light */
/* just for showing the yellow background */
overflow: hidden;
}
.category {
/* fluid squares rules */
width: 31.333%;
height: 0;
padding-bottom: 31.333%;
margin: 1%;
float: left;
background-color: rgba(0,0,255,0.3);
}
<body>
<div id="someotherdiv">
<p>Some other content</p>
</div>
<div id="gallery">
<div class="category">
Content
</div>
<div class="category">
Content
</div>
<div class="category">
Content
</div>
</div>
<body>
// alert('Hello world!');
{"view":"split-vertical","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment