Posted By

pierre on 02/26/07


Tagged

float clearfix clearing


Versions (?)

Who likes this?

15 people have marked this snippet as a favorite

Hirmine
basicmagic
marcosvidal
icarus
luckylisbon
nankoweap
SpinZ
maxkks
fael
marcoba
cwoodley
vali29
stoker
eivind
dinkan


Clearfix


 / Published in: CSS
 

Classe para interromper floats

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

Report this snippet  

You need to login to post a comment.