I need a div that stays at 95% width and is scrollable horizontally. What I have inside of them is a lot of divs that are generated via code. The problem I'm having is that when they get too wide, they go to the next line. I want a horizontal scroll bar to show. Here is the html
<div id="header">
<br>
<div class="headerImageRepeat">
content here
</div>
<div class="headerImageRepeat">
content here
</div>
<div class="headerImageRepeat">
content here
</div>
<div class="headerImageRepeat">
content here
</div>
<div class="headerImageRepeat">
content here
</div>
<div class="headerImageRepeat">
content here
</div>
<div class="headerImageRepeat">
content here
</div> <!-- etc... -->
</div>
and here is my css
#header{
margin-left: auto;
margin-right: auto;
width: 95%;
text-align: left;
height: 124px;
white-space: nowrap;
overflow-x: auto;
}
.headerImageRepeat{
width: 210px;
height: 83px;
margin-right: 10px;
background-image: url('../images/userBg.png');
background-repeat: no-repeat;
float: left;
display: inline;
}