• 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
0
Tom Knowlton
Asked:
Tom Knowlton
3 Solutions
 
LZ1Commented:
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.
0
 
Dave BaldwinFixer of ProblemsCommented:
When you try to 'float' a div and there isn't enough room, it will do that.
0
 
SSupremeCommented:
You need specify min-width of body, or make wrap for example red div and specify min-width to it.
0
 
Tom KnowltonWeb developerAuthor Commented:
thx
0

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