Created
February 19, 2013 11:00
-
-
Save jamosonic/4984889 to your computer and use it in GitHub Desktop.
Bottom margin/padding double ups
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
/** | |
* Bottom margin/padding double ups | |
*/ | |
h2 { | |
margin: 0 0 15px 0; | |
} | |
p { | |
margin: 0 0 15px 0; | |
} | |
.column { | |
background: #eee; | |
} | |
.field { | |
padding: 15px; | |
background: #ddd; | |
outline: 1px dashed red; | |
} | |
.component { | |
background: #bbb; | |
} | |
.last { | |
margin-bottom: 0; | |
} | |
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="column"> | |
<div class="field"> | |
<div class="component"> | |
<h2>Component Heading</h2> | |
<p class="last">Component body</p> | |
</div> | |
</div> | |
<div class="field"> | |
<div class="component"> | |
<h2>Component Heading</h2> | |
<p class="last">Component body</p> | |
</div> | |
</div> | |
<div class="field"> | |
<div class="component"> | |
<h2>Component Heading</h2> | |
<p class="last">Component body</p> | |
</div> | |
</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":"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