Skip to content

Instantly share code, notes, and snippets.

@cahnory
Created February 2, 2012 18:58
Show Gist options
  • Save cahnory/1725112 to your computer and use it in GitHub Desktop.
Save cahnory/1725112 to your computer and use it in GitHub Desktop.
Clear float, technique définitive
/* Clear float, technique définitive */
li { float: left }
ul { *zoom: 1 }
ul:after {
clear: left;
content: ' '; /* Attention, c'est un espace insécable (alt+space) */
display: block;
height: 0;
}
<ul>
<li>Je float !</li>
<li>Je float !</li>
<li>Je float !</li>
</ul>
<p>
Je float plus… du con la joie ! y à pas de consigne pour ces bouteilles :D
</p>
{"view":"split","prefixfree":"1","page":"css"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment