CSS help... getting a horizontal scroll bar.
May 4, 2006 4:29 PM
Subscribe
CSS Help: I have a element 650 wide and 180 high. I want items to appear in it and there to be a scroll bar along the bottom so it scrolls horizontally. However, when the elements reach the right edge, a scroll bar appears on the right side and the new element appears on the left under the first element. Why?
I have each item in its own paragraph tag and I've specified a float of left. Shouldn't they keep appearing to the right of the previous item?
I have this:
#podcasts{
width: 650px;
height: 180px;
overflow: auto;
}
#podcasts p {
float: left;
}
I want the items to appear like this:
1 2 3 4 5 6 7 8 9 0
but they appear like this
1 2 3 4 5 6 7 8
9 0
What am I not understanding here?
posted by Manhasset to computers & internet (8 comments total)
Set white-space : nowrap; ?
posted by AmbroseChapel at 4:44 PM on May 4, 2006