ClearFix


 / Published in: CSS
 

  1. .ClearFix:after{
  2. content:".";
  3. display:block;
  4. height:0;
  5. clear:both;
  6. visibility:hidden;
  7. }
  8.  
  9. /* WinIE7 only */
  10. *:first-child+html .ClearFix{
  11. height:1%;
  12. }
  13.  
  14. /* WinIE6 and below */
  15. /*¥*/
  16. * html .ClearFix{
  17. height:1%;
  18. }
  19. /**/
  20.  
  21. /* MacIE only */
  22. /*¥*//*/
  23. .ClearFix{
  24. display:inline-table;
  25. }
  26. /**/

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: shapeshifta on March 27, 2010

MacIE ... lol :) is anyone still using it?

it's better to use /sets hasLayout/ * html .clearfix, +html .clearfix {display:inline-block;} /hasLayout still set*/ * html .clearfix, *+html .clearfix {display:block;}

Works perfect! ;)

Posted By: liangliang on September 20, 2010

abercrombieandfitch.com Men Abercrombie Tees

[url=http://www.abercrombiefitchstyle.com/>[b]abercrombieandfitch.com[/b]][b]Men Abercrombie Tees[/b][/url] [url=http://www.abercrombiefitchstyle.com/>[b]Abercrombie[/b]][b]Mens Abercrombie Outerwears[/b][/url]

abercrombieandfitch.com Men Abercrombie Tees

Posted By: alizabed on September 27, 2010

SEO India - Get good [url=http://www.seobless.com/]seo services[/url] from SEO company in India,USA,UK. If you need SEO services, organic SEO & managed search engine marketing call us +91.8013242527

Posted By: alizabed on September 27, 2010

When a float is contained within a container box that has a visible border or background, that float does not automatically force the container's bottom edge down as the float is made taller. Instead the float is ignored by the container and will hang down out of the container bottom like a flag. Those familiar only with Explorer for Windows may scratch their heads and say "That's not right!" True, IE/Win does enclose a float within a container 'automatically', but only if the container element happens to possess the MS-only quality called hasLayout.SEO India - Get good seo services from SEO company in India,USA,UK. If you need SEO services, organic SEO & managed search engine marketing call us .

Posted By: Hearingloss on February 26, 2011

Whether you have worked with this code

Posted By: HearingAids on February 28, 2011

Did you havc time to check out this snippet?

Posted By: HearingTreatment on March 5, 2011

What kind of modification did you need from this code?

Posted By: TinnitusTreatment on March 5, 2011

Please let us what does code mean?

Posted By: HearingTreatments on March 7, 2011

Explain your code in detail to us

Posted By: SuddenHearingLoss on March 8, 2011

Please explain you code in detail

Posted By: SensorineuralHearingLoss on March 10, 2011

Could you please explain the details in a detailed manner

Posted By: Presbycusis on March 11, 2011

How is your code working on?

Posted By: NoiseInducedHearingLoss on March 11, 2011

could you tell wt details u need for this code?

Posted By: ConductiveHearingLoss on March 11, 2011

tell the details about code?

You need to login to post a comment.