Skip to content

Instantly share code, notes, and snippets.

@seanuk
Created March 16, 2015 23:00
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 seanuk/67e0d6eecc9445866471 to your computer and use it in GitHub Desktop.
Save seanuk/67e0d6eecc9445866471 to your computer and use it in GitHub Desktop.
/*------------------------------------*\
$SPLIT
\*------------------------------------*/
/**
* Simple split item for creating two elements floated away from one another,
* e.g.:
*
<dl class=split>
<dt class=split__title>Burger and fries</dt>
<dd>&pound;5.99</dd>
<dt class=split__title>Fillet steak</dt>
<dd>&pound;19.99</dd>
<dt class=split__title>Ice cream</dt>
<dd>&pound;2.99</dd>
</dl>
*
<ol class="split results">
<li class=first><b class=split__title>1st place</b> Bob</li>
<li class=second><b class=split__title>2nd place</b> Lilly</li>
<li class=third><b class=split__title>3rd place</b> Ted</li>
</ol>​
*
* Demo: jsfiddle.net/inuitcss/9gZW7
*
*/
.split{
text-align:right;
list-style:none;
margin-left:0;
}
.split__title{
text-align:left;
float:left;
clear:left;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment