Posted By

gbot on 03/09/08


Tagged

css clear


Versions (?)

Who likes this?

5 people have marked this snippet as a favorite

gbot
basicmagic
SpinZ
wiired
ebukva


Another CSS autoclear


 / Published in: CSS
 

  1. .container:after {
  2. content: “.”;
  3. display: block;
  4. height: 0;
  5. clear: both;
  6. visibility: hidden;
  7. }
  8.  
  9. .container {display: inline-table;}
  10. /* Hides from IE-mac \*/
  11. * html .container {height: 1%;}
  12. .container {display: block;}
  13. /* End hide from IE-mac */

Report this snippet  

You need to login to post a comment.