SitePoint Sponsor

User Tag List

Results 1 to 25 of 39

Threaded View

  1. #1
    SitePoint Wizard bronze trophy PicnicTutorials's Avatar
    Join Date
    Dec 2007
    Location
    Carlsbad, California, United States
    Posts
    3,623
    Mentioned
    15 Post(s)
    Tagged
    0 Thread(s)

    Calling all Gurus! Which Clearfix is best? .clearfix - not clearing method!

    So I'm working on my demo here and now I move onto the clearfix method. While doing some reading I came across this article by Perishable Press. As Paul would put it, he amalgamated the clearfix method a little. Makes sense to me - what do you think? Heard anything about his changes? I understand the reasoning behind the font-size: 0; but what about the space void of the "dot". Thoughts???

    Also, if I wanted to remove IE5 from it would it look like this? That's who the hacky stuff is for right?

    .clearfix:after {
    content:".";
    display:block;
    height:0;
    clear:both;
    visibility:hidden;
    }
    .clearfix {display:inline-block;}
    * html .clearfix {height: 1%;}
    Last edited by PicnicTutorials; Aug 21, 2008 at 17:31.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •