horizontal scrolling only!
Posted
by Crippletoe
on Stack Overflow
See other posts from Stack Overflow
or by Crippletoe
Published on 2010-04-03T18:07:36Z
Indexed on
2010/04/03
18:13 UTC
Read the original article
Hit count: 523
Hi all
i have a that contains a HORIZONTAL menu. the menu consists of an unordered list.
i would like the div to get a horizontal scroller whenever the menu exceeds the width of the <div>
.
i tried using these CSS definitions for my <div>
:
position: absolute;
width: 380px;
overflow: auto;
overflow-y: hidden;
height: 30px;
but than realized that since the menu is LIST, the different list items break the line whenever they reach the width of the <div>
and move on to the next line, thus the browser doesnt see the need for a horizontal scroller (it doesnt display a vertical one as well because of the overflow-y: hidden;
line)
any ideas how i can create a 1 line horizontal menu which will scroll horizontally only?
thank you all so much.
© Stack Overflow or respective owner