473,381 Members | 1,439 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,381 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 2922
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Peter Mount | last post by:
Hi When I zoom into my site (http://www.petermount.au.com) with Opera 7.54 the horizontal scrollbar doesn't show when the site image is bigger than my screen. Yet the horizontal scrollbar shows...
3
by: buht | last post by:
Hello Everyone, Fairly new to c# here and have a question regarding scrollbars, particularly a vertical scrollbar. It looks like my options are restricted for the textbox scrollbars being...
4
by: Sakharam Phapale | last post by:
Hi All, I have installed VS .NET 2002 on my machine. I have checked both Vertical scrollbar and Horizontal Scrollbar options, in Tools -> Options-> Text Editor-> General-> Vertical Scrollbar...
2
by: Paul_Madden via DotNetMonster.com | last post by:
I am handling the Listbox DrawItem event to enable the listbox strings to be displayed in different colours for easy reading. Have set ScrollAlwaysVisible and HorizontalScrollbar to true. I...
14
by: Michael Weis | last post by:
Hello all, as a non-professional in these things, I searched for this topic but found no satisfying answer: I have to create a site with 3 frames. (Please no diskussion about the sense of...
1
by: Mae Lim | last post by:
Hi all, I have a question, how can I add an horizontal scrollbar to a listbox control? I have tried "overflow:scroll;" using <divbut the scrollbar will be display outside of the listbox. I...
1
by: malpani.abhijit | last post by:
Hi, I am having a ListView component in my WinForm, when i add some images into it, it gives me a vertical scroll bar. What i want is, the horizontal scrollbar instead of vertical. Is there any...
0
by: rn5a | last post by:
How do I make a ListBox display the horizontal scrollbar if the text of any of the items in the ListBox exceeds the width of the ListBox? Unlike the vertical scrollbar which gets displayed...
6
by: ryanmhuc | last post by:
Is there a way with javascript to force firefox on a page to display the scrollbar even when the content does not extend outside the viewable error? Going from page to page where the scroll bar...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.