clearfix update


/ Published in: CSS
Save to your folder(s)

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


Copy this code and paste it in your HTML
  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 */

URL: http://www.posterous.com

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.