Forum Moderators: not2easy

Message Too Old, No Replies

Horizontal Scrollbar

         

AmazingPixels

2:26 pm on May 10, 2009 (gmt 0)

10+ Year Member



Hello,

I have been trying to achieve for hours. I've googling and I can't seem to find a good solution.

I want a liquid div which has a horizontal scrollbar.

Please help me how to start with this.

This is what I'm trying to achieve.

<snip>

Any ideas?

Thanks.

[edited by: swa66 at 10:08 pm (utc) on May 10, 2009]
[edit reason] No personal URLs please see ToS and forum charter [/edit]

swa66

10:12 pm on May 10, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If you have a block element on it's default setting, it'll occupy all the width in a fluid fashion. If you give that element overfow properties, elements it contains that are wide enough can cause scrollbars.

There is a very widely supported CSS3 property overflow-x (and overflow-y) where you can control the overflow in both directions indepedently.