Created
March 6, 2013 04:59
-
-
Save hucklesby/5096835 to your computer and use it in GitHub Desktop.
Block Behavior - Margins
This file contains 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
/** | |
* Block Behavior - Margins | |
*/ | |
body { | |
margin: 0 auto; | |
width: 80%; | |
background-color: #222; | |
} | |
.container { | |
margin-top: 2em; | |
background-color: #f0f0f0; | |
} | |
.box { | |
width: 30%; | |
padding-top: 20%; | |
} | |
.box-1 { | |
margin-top: 0; | |
margin-right: 0; | |
margin-bottom: 0; | |
margin-left: 0; | |
background-color: rgba(255, 0, 255, .8); | |
} | |
.box-2 { | |
margin-top: 0; | |
margin-right: auto; | |
margin-bottom: 0; | |
margin-left: auto; | |
background-color: rgba(255, 255, 0, .8); | |
} | |
.box-3 { | |
margin-top: 0; | |
margin-right: 0; | |
margin-bottom: 0; | |
margin-left: auto; | |
background-color: rgba(0, 191, 255, .8); | |
} |
This file contains 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 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 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":"separate","fontsize":"100","seethrough":"","prefixfree":"","page":"all"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment