Posted By

hotdiggity on 09/02/10


Tagged

fix hack clearfix


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

atomicbutterfly
jplr


clearfix update


 / Published in: CSS
 

URL: http://www.posterous.com

As used by Posterous. Forces parent element to stretch to the dimensions of its child element.

  1. .clearfix:after { visibility: hidden; display: block; font-size: 0; content: " "; clear: both; height: 0; }
  2. * html .clearfix { zoom: 1; } /* IE6 */
  3. *:first-child+html .clearfix { zoom: 1; } /* IE7 */

Report this snippet  

You need to login to post a comment.