T
Tim Streater
I have a container <div>, within which I want to have several divs (all
same size) next to each other. The overall height of the container and
content divs I adjust with JavaSCript as the user resizes the window.
As the user clicks around, I want to add more divs, with a horizontal
scroll-bar appearing when the window is too narrow to add another. The
user can then scroll right to see the latest addition, or make the
window wider. This looks just like the Next (and now OS X) file select
dialogue pane. I'm using float: left on all these internal <div>s.
Trouble is, instead of a horizontal scroll-bar appearing, the next <div>
floats underneath all those already there, and a *vertical* scroll bar
appears. How can I prevent this from happening?
same size) next to each other. The overall height of the container and
content divs I adjust with JavaSCript as the user resizes the window.
As the user clicks around, I want to add more divs, with a horizontal
scroll-bar appearing when the window is too narrow to add another. The
user can then scroll right to see the latest addition, or make the
window wider. This looks just like the Next (and now OS X) file select
dialogue pane. I'm using float: left on all these internal <div>s.
Trouble is, instead of a horizontal scroll-bar appearing, the next <div>
floats underneath all those already there, and a *vertical* scroll bar
appears. How can I prevent this from happening?