What is Logically and semantically correct, A-grade browsers compatible and W3C valid way to clear f

Posted by metal-gear-solid on Stack Overflow See other posts from Stack Overflow or by metal-gear-solid
Published on 2009-11-19T14:55:07Z Indexed on 2010/05/22 4:30 UTC
Read the original article Hit count: 198

Filed under:
|
|
|
|

What is Logically correct and W3C valid way to clear float?

  1. zoom:1 is not valid by W3C and IE8 don't have hash layout problem
  2. overflow:hidden and overflow:hidden were not made to do this,as the spec intended overflow to be used
  3. <div class="clear"/> is not semantically correct and i don't want to add extra markup.
  4. clearfix hack generates content that really hasn’t any semantic value.

I've asked many questions and read many articles on this issue but haven't find best way.

© Stack Overflow or respective owner

Related posts about css

Related posts about XHTML