Skip to content

Instantly share code, notes, and snippets.

@andriyudatama
Forked from cahnory/dabblet.css
Created August 2, 2012 15:46
Show Gist options
  • Save andriyudatama/3238052 to your computer and use it in GitHub Desktop.
Save andriyudatama/3238052 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