Hi,
I have a UL containing a few list-items. I want the list items to stay in the same line, even if the size of the window is too small. So I've added
width: 1500px to the UL.
But the problem is that in some browsers (Opera, IE7, Safari and such, but not in Firefox), the scrollbar is visible all the time, not only when the window size is too small.
Here's a piece of code:
Code:
CSS:
ul {list-style-type: none; width: 1200px}
li {float: left; margin: 0 15px}
HTML:
<ul>
<li>item one</li>
<li>item two</li>
<li>item three</li>
<li>item four</li>
<li>item five</li>
<li>item six</li>
<li>item se7en</li>
<li>item eight</li>
<li>item nine</li>
<li>item ten</li>
</ul>
How can I avoid the scrollbars when the window width is ok?
Thanks.