Created
November 23, 2012 17:28
-
-
Save marcolago/4136567 to your computer and use it in GitHub Desktop.
FluidSquares in a wrapper
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// alert('Hello world!'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"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