I've got a menu bar here: --- Now when you resize the window (so there appears a horizontal scrollbar) and you scroll to the right, the background is vanished! How can I solve this problem?
Asked
Active
Viewed 1,110 times
3
-
white-space:nowrap; is preventing the background from being displayed properly when resized. – Jrod Jun 14 '11 at 14:25
2 Answers
2
@kevin; may be you have to define min-width
for your menu bar.
for example
.menu{
min-width:1200px;
width:1300px;
}
for more : Min width in window resizing
http://friendlybit.com/css/min-width-and-max-width-template/
2
You should wrap everything in a new div
, and apply min-width: 960px
to that.
<div id="container" style="min-width:960px">
<div id="ovoMenu">
..
</div>
<div id="ovoSubmenu">
..
</div>
</div>
You could just set the min-width
on body
, but I'm not sure what else will be going on that page.
![](../../users/profiles/405015.webp)
thirtydot
- 210,355
- 44
- 377
- 337