Skip to content

Instantly share code, notes, and snippets.

@stammy
Created July 9, 2010 22:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stammy/470213 to your computer and use it in GitHub Desktop.
Save stammy/470213 to your computer and use it in GitHub Desktop.
div#columns
div.tri
width: 29.5%
margin-right: 25px
padding: 5px
float: left
&:last-child
margin-right: 0
h5
border-bottom: 1px solid #e5e5e5
<div id="columns">
<div class="tri">
<h5>stuff</h5>
<p>more stuff</p>
</div>
<div class="tri">
<h5>stuff</h5>
<p>more stuff</p>
</div>
<div class="tri">
<h5>stuff</h5>
<p>more stuff</p>
</div>
</div>
@stammy
Copy link
Author

stammy commented Jul 9, 2010

i could just add another class to the last one or add an inline style but i figure might as well use last-child..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment