What’s wrong with this div? [closed]

Floating elements do not apply height to their container. You either need to:

  • Add an element with clear: both; after the floats, OR
  • Add overflow:hidden; to the containing element, OR
  • Use display:inline-block; instead of float:left [Most recommended by me]

Browse More Popular Posts

Leave a Comment