Created
February 8, 2013 13:29
-
-
Save maxhoffmann/4739042 to your computer and use it in GitHub Desktop.
_nav without clearfix
This file contains hidden or 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
| /** | |
| * _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; | |
| } |
This file contains hidden or 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
| <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> |
This file contains hidden or 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 hidden or 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":"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