471,316 Members | 1,261 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,316 software developers and data experts.

force horizontal scrollbar display on div

Hi guys

I'm using a div to create a list with ajax stuff. At the moment, the div
shows a scrollbar if the content is larger than the div.

The problem is that if it isnt, the scrollbar disappears and all my content
resizes, which obviously I don't want.

I know I can use overflow: auto on the div, but that shows a horizontal
scrollbar as well, and I don't need that - and because it's obvious I don't
need it - it looks daft.

Question - how can I get the vertical scrollbar to stay (and be grayed out
if necessary) but NOT have the horizontal scrollbar?

Any help appreciated, and I'm open to suggestions that don't involve a div!

Cheers
Dan
Nov 19 '05 #1
1 2814
Hi

See page source for
http://support.microsoft.com/default...b;en-us;274188
Works with IE but not with Firefox :(

--
Milosz Skalecki
MCP, MCAD
"dhnriverside" wrote:
Hi guys

I'm using a div to create a list with ajax stuff. At the moment, the div
shows a scrollbar if the content is larger than the div.

The problem is that if it isnt, the scrollbar disappears and all my content
resizes, which obviously I don't want.

I know I can use overflow: auto on the div, but that shows a horizontal
scrollbar as well, and I don't need that - and because it's obvious I don't
need it - it looks daft.

Question - how can I get the vertical scrollbar to stay (and be grayed out
if necessary) but NOT have the horizontal scrollbar?

Any help appreciated, and I'm open to suggestions that don't involve a div!

Cheers
Dan

Nov 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Peter Mount | last post: by
4 posts views Thread by Sakharam Phapale | last post: by
2 posts views Thread by Paul_Madden via DotNetMonster.com | last post: by
14 posts views Thread by Michael Weis | last post: by
1 post views Thread by Mae Lim | last post: by
reply views Thread by rn5a | last post: by
6 posts views Thread by ryanmhuc | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.