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
LVL 5
Tom KnowltonWeb developerAsked:
Who is Participating?
 
SSupremeCommented:
You need specify min-width of body, or make wrap for example red div and specify min-width to it.
0
 
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
 
Tom KnowltonWeb developerAuthor Commented:
thx
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.