2

I'm designing a website that has banners that are floated left and right. When I make the window very narrow, the banner on the right begins to cover the banner on the left. How can I stop the banners from overlapping and simply stop moving once they hit each other?

1
  • 2
    Hi, could you show a live example / create a jsfiddle?
    – biziclop
    Nov 24, 2011 at 7:11

1 Answer 1

4

The easiest way is to set a min-width on the containing element. The min-width is the size of both floated elements widths.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.