• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 321
  • Last Modified:

Prevent div from dropping down when browser window is resized smaller

I have a div that is "dropping" down under the div it is next to when the browser window gets too small:

(the red box represents the browser window)

 div drops down
Tom Knowlton
Tom Knowlton
3 Solutions
Can you post your code or a live URL?  This generally happens when there is no container with a set width. You will need a container of some kind with a width set in order to achieve what your doing.
Dave BaldwinFixer of ProblemsCommented:
When you try to 'float' a div and there isn't enough room, it will do that.
You need specify min-width of body, or make wrap for example red div and specify min-width to it.
Tom KnowltonWeb developerAuthor Commented:

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now