I am working on a page layout where the body is 960px wide and I want to have a row of images overflow out of the right side of the page, with the ability to horizontally scroll to see the rest of the images. The challenge I'm facing is getting the overflowed images to display without increasing the width of the entire page and causing it to scroll horizontally.
My CSS setup:
.container{
width:960px;
margin: 0 auto;
}
.pic-container {
white-space:nowrap;
overflow:scroll;
}
My HTML structure (simplified):
<body>
<container>
<div class="pic-container">
<div class="pic-row">
<img src="1.jpg">
<img src="2.jpg">
<img src="3.jpg">
<img src="4.jpg">
<img src="5.jpg">
<img src="6.jpg">
</div>
</div>
</container>
</body>
This is the desired layout: