«« Next » « Previous
«« Next » « Previous

Link Details

Lumbergh says: "If you voted, that would be greeaaaattt!" Login and vote now.
Link 70971 thumbnail

By nunos
via nunos.zi-yu.com
Published: Mar 16 2008 / 04:39

A simple technic to wrap a div around other div with float.
  • 10
  • 3
  • 1134
  • 478

Comments

Add your comment
User 207069 avatar

hal10001 replied ago:

0 votes Vote down Vote up Reply

The best and most consistently behaving option here is to use overflow: hidden; on the parent container div. I advise against the clearfix hack because it is a hack that is unnecessary. If you need to support IE6, then include a width on the container div, or give it a property of zoom:1; as well. If you do not then you will likely run into the peekaboo bug in a more complicated design.

User 244359 avatar

dacoder replied ago:

0 votes Vote down Vote up Reply

Pretty sure the sites you work on use the clear fix :)

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.