No, but I think I know what you’re making.
You can set a small width and height with overflow: auto (to generate at least a horizontal scrollbar for those of us who don’t Jabbadascript enable) like you already have (but without the white-space: nowrap, that’s not for cases like these), and the box inside, with all your boxes you don’t want to wrap, set as an absolutely positioned child with a super huge long width. So long as the width is longer than the total widths of the stuff you’re putting inside it, there will be no wrapping.
You can see this with and without JS on the apple.com/mac page, if it’s still there. They clearly made sure the slider still worked for folks without Javascript, which is a Good Thing.
http://apple.com/mac
If you don’t want a big empty end, because you never know how many things will be inside or how wide they will be, you could also use Jabba da script to dynamically calculate and set the width on that inner element, while for everyone else w/o JS, just have a super wider-than-ever- needed width.
Here’s an incomplete scroller I made, which still has the nasty nasty Dynamic Dump code inside the HTML where it doesn’t belong, and where I actually don’t implement it (because this is a static example for my colleague to script to: http://stommepoes.nl/Homeselling/secondhome/secondhomehuis.html
(the scroller is made super-wide because when I first built it, there was a 10-image limit, and then I learned a partner had homes with gazillions of fotos… so I made room for those gazillions, and in theory Javascript should shorten that for those who have JS enabled)
When redoing another site, I learned from my mistakes and made it much, much simpler:
<div id="gallerycontainer">
<div id="gallery">
<a href="#"><img src="secondhome/633_0.jpg" alt="" /></a>
<a href="#"><img src="secondhome/633_1.jpg" alt="" /></a>
<a href="#"><img src="secondhome/633_2.jpg" alt="" /></a>
<a href="#"><img src="secondhome/633_3.jpg" alt="" /></a>
<a href="#"><img src="secondhome/633_4.jpg" alt="" /></a>
<a href="#"><img src="secondhome/633_5.jpg" alt="" /></a>
<a href="#"><img src="secondhome/633_6.jpg" alt="" /></a>
<a href="#"><img src="secondhome/633_7.jpg" alt="" /></a>
<a href="#"><img src="secondhome/633_9.jpg" alt="" /></a>
<a href="#"><img src="secondhome/huisfotoguisy.gif" alt="" /></a>
</div>
</div>
#gallerycontainer {
position: relative;
height: 189px;
width: 95%;
margin: 0 auto;
overflow: auto;
}
#gallery {
width: 4520px;
position: absolute;
z-index: 1;
}
#gallery a {
float: left;
width: 219px;
height: 165px;
margin-right: 5px;
border: 1px solid #000;
}
Note I should have the heights and widths of the images in the HTML, I just didn’t for some reason (bad poes, bad).
So if looking at all that Apple code has you groaning, know that the basics above are all you would really need.
Here I’m only floating the anchors, but I’ve seen them using display: inline-block with divs etc as well. That might even work better than just floats.