Created
November 20, 2012 04:15
-
-
Save fliptheweb/4115944 to your computer and use it in GitHub Desktop.
Untitled
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 { | |
padding-top: 100px; | |
} | |
.container { | |
float:left; | |
height: 300px; | |
width: 100px; | |
border: 1px solid #000; | |
margin-right: 100px; | |
} | |
.box { | |
width: 100%; | |
height: 100%; | |
opacity: 0.5; | |
} | |
.box_1 { | |
background-color: red; | |
/* 100% of width =/ */ | |
margin-top: -100%; | |
} | |
.box_2 { | |
background-color: blue; | |
} | |
.box_3 { | |
background-color: green; | |
} |
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
<div class="container"> | |
<div class="box box_1"></div> | |
<div class="box box_2"></div> | |
<div class="box box_3"></div> | |
</div> | |
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","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