Welcome to WebmasterWorld Guest from

Forum Moderators: not2easy

Message Too Old, No Replies

DIV horizontal scroll

how to get rid of it



7:32 am on Nov 18, 2003 (gmt 0)

10+ Year Member

i try to achieve the functionality of a fixed height layer (<div>) which expands its with as content expands and have only up/down scroll and NO BOTTOM scroll.
i place a DIV with height specified, overflow:auto and inside place atable that expands width of parent div.. scrolls appear when i place some more data to table but nasty bottom scroll also appears having only 17 (width of right scroll) pixels to scroll.. how to get rid of that nasty scroll? i tried all the paddings margins and borders but have no affect.. they all scroll like normal content

here is the code:

<div id="lista" style="position:absolute; left:100px; top: 100px; height: 100px; background-color: blue; overflow:auto">
<tr><td>ble bleble bleble ble</td></tr>
<tr><td>ble bleble bleble bleble bleble bleble bleble ble</td></tr>
<tr><td>ble ble</td></tr>
<tr><td>ble ble</td></tr>
<tr><td>scrolled content outside</td></tr>


4:03 pm on Nov 18, 2003 (gmt 0)

10+ Year Member


try adding this....

overflow-x : hidden;

i found that it works for IE with overflow: scroll; but not for mozilla or opera

but when you change to overflow:auto; it works for all of them!

(so keep yours as it is!)




7:07 am on Nov 19, 2003 (gmt 0)

10+ Year Member

great news :)
i found this on MSDN network but assumed it works only for IE but now i'm astonished..

U R the man..


Featured Threads

Hot Threads This Week

Hot Threads This Month