3

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?

BoltClock
  • 630,065
  • 150
  • 1,295
  • 1,284
www.data-blogger.com
  • 3,585
  • 6
  • 38
  • 60
  • white-space:nowrap; is preventing the background from being displayed properly when resized. – Jrod Jun 14 '11 at 14:25

2 Answers2

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/

Community
  • 1
  • 1
sandeep
  • 85,904
  • 23
  • 131
  • 151
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.

thirtydot
  • 210,355
  • 44
  • 377
  • 337