CSS clear class


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



Copy this code and paste it in your HTML
  1. .clear:after {
  2. content:".";
  3. clear:both;
  4. display:block;
  5. height:0;
  6. visibility:hidden;
  7. }
  8.  
  9. /*<!--[if IE 7]>
  10.   *:first-child+html .clear { min-height:1px; }
  11. <![endif]-->
  12.  
  13. <!--[if lt IE 7]>
  14.   * html .clear { height:1%; }
  15. <![endif]-->*/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.