Created
September 6, 2012 08:35
-
-
Save wrumsby/3653114 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 { | |
background-color: #fff; | |
color: #333; | |
} | |
.outer { | |
position: relative; | |
border: 3px solid orange; | |
width: 400px; | |
height: 400px; | |
} | |
.box { | |
position: absolute; | |
margin: 10px; | |
width: 150px; | |
height: 150px; | |
opacity: 0.9; | |
} | |
.red { | |
background-color: red; | |
left: 0; | |
top: 0; | |
} | |
.green { | |
background-color: green; | |
right: 0; | |
top: 0; | |
} | |
.blue { | |
background-color: blue; | |
left: 0; | |
bottom: 0; | |
} | |
.yellow { | |
background-color: yellow; | |
right: 0; | |
bottom: 0; | |
} |
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="outer"> | |
<div class="box red"></div> | |
<div class="box green"></div> | |
<div class="box blue"></div> | |
<div class="box yellow"></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-vertical","fontsize":"100","seethrough":"","prefixfree":"1","page":"css"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment