Skip to content

Instantly share code, notes, and snippets.

@jamosonic
Created February 19, 2013 11:00
Show Gist options
  • Save jamosonic/4984889 to your computer and use it in GitHub Desktop.
Save jamosonic/4984889 to your computer and use it in GitHub Desktop.
Bottom margin/padding double ups
/**
* 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;
}
<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>
// alert('Hello world!');
{"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