Skip to content

Instantly share code, notes, and snippets.

@maxhoffmann
Created February 8, 2013 13:29
Show Gist options
  • Select an option

  • Save maxhoffmann/4739042 to your computer and use it in GitHub Desktop.

Select an option

Save maxhoffmann/4739042 to your computer and use it in GitHub Desktop.
_nav without clearfix
/**
* _nav without clearfix
*/
.nav{
list-style:none;
margin-left:0;
}
.nav > li,
.nav > li > a {
display:inline-block;
*display:inline;
zoom:1;
}
.cf:after {
content: "";
display: table;
clear: both;
}
<ul class="nav cf">
<li>Point 1<li>
<li>Point 2</li>
</ul>
<ul class="nav">
<li>Point 1<li>
<li>Point 2</li>
</ul>
// alert('Hello world!');
{"view":"separate","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