473,412 Members | 2,050 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,412 software developers and data experts.

Make Scrollbar appear on a page

Is it possible to make the scrollbar appear on a page which is NOT A
POPUP?

On IE the scollbar space is always reserved or appears even if not
used. In Firefox it does not exist unless the page's window is larger
then the viewable area. This causes the page to jump left whenever you
go from a page without a scollbar to a page with a scollbar in
Firefox.

So i would like to have a piece of javascript that always enables the
scrollbar. Is this possible?

Thanks
Jan 15 '08 #1
5 1760
On 1/15/2008 9:46 AM, ry******@yahoo.com wrote:
Is it possible to make the scrollbar appear on a page which is NOT A
POPUP?

On IE the scollbar space is always reserved or appears even if not
used. In Firefox it does not exist unless the page's window is larger
then the viewable area. This causes the page to jump left whenever you
go from a page without a scollbar to a page with a scollbar in
Firefox.
It's a CSS thing.

If you use

body {
overflow:scroll;
height:100.01%;
}

Then you're CSS2-compliant, but you get both scrollbars in good ole Firefox.
If you use:

body {
overflow-y:scroll;
height:100.01%;
}

You are not in compliance, but it achieves your goal.

All the best,
~A!

--
anthony at my pet programmer dot com
CLJ FAQ:
<URL: http://www.jibbering.com/faq/ >
Jan 15 '08 #2
On 1/15/2008 9:46 AM, ry******@yahoo.com wrote:
Is it possible to make the scrollbar appear on a page which is NOT A
POPUP?

On IE the scollbar space is always reserved or appears even if not
used. In Firefox it does not exist unless the page's window is larger
then the viewable area. This causes the page to jump left whenever you
go from a page without a scollbar to a page with a scollbar in
Firefox.
It's a CSS thing.

If you use

body {
overflow:scroll;
height:100.01%;
}

Then you're CSS2-compliant, but you get both scrollbars in good ole Firefox.
If you use:

body {
overflow-y:scroll;
height:100.01%;
}

You are not in compliance, but it achieves your goal.

All the best,
~A!

--
anthony at my pet programmer dot com
CLJ FAQ:
<URL: http://www.jibbering.com/faq/ >
Jan 15 '08 #3
On Jan 15, 10:41*am, Anthony Levensalor <killf...@mypetprogrammer.com>
wrote:
On 1/15/2008 9:46 AM, ryanm...@yahoo.com wrote:
Is it possible to make the scrollbar appear on a page which is NOT A
POPUP?
On IE the scollbar space is always reserved or appears even if not
used. In Firefox it does not exist unless the page's window is larger
then the viewable area. This causes the page to jump left whenever you
go from a page without a scollbar to a page with a scollbar in
Firefox.

It's a CSS thing.

If you use

body {
* overflow:scroll;
* height:100.01%;

}

Then you're CSS2-compliant, but you get both scrollbars in good ole Firefox.

If you use:

* *body {
* * overflow-y:scroll;
* * height:100.01%;
* *}

You are not in compliance, but it achieves your goal.
It should be pointed out that the whole idea is insane. Also, this
proposed solution assumes quirks mode (the html selector would be used
otherwise.)
Jan 15 '08 #4
On 1/15/2008 11:08 AM, David Mark wrote:
>
It should be pointed out that the whole idea is insane. Also, this
proposed solution assumes quirks mode (the html selector would be used
otherwise.)
Thanks, David. I did not realize that was a quirks mode thing. Thanks! I
had tried it with the HTML selector, and it didn't work, probably
because I wasn't using valid markup at the time.

Much obliged for the correction.

And I agree, the idea itself is a hack to keep images from "jumping",
when it's fairly simple to do that with some decent styles and good markup.
~A!
--
anthony at my pet programmer dot com
CLJ FAQ:
<URL: http://www.jibbering.com/faq/ >
Jan 15 '08 #5
On 1/15/2008 11:08 AM, David Mark wrote:
>
It should be pointed out that the whole idea is insane. Also, this
proposed solution assumes quirks mode (the html selector would be used
otherwise.)
Thanks, David. I did not realize that was a quirks mode thing. Thanks! I
had tried it with the HTML selector, and it didn't work, probably
because I wasn't using valid markup at the time.

Much obliged for the correction.

And I agree, the idea itself is a hack to keep images from "jumping",
when it's fairly simple to do that with some decent styles and good markup.
~A!
--
anthony at my pet programmer dot com
CLJ FAQ:
<URL: http://www.jibbering.com/faq/ >
Jan 15 '08 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Roderik | last post by:
Hi, At http://archytas.nl/ there appears to be a horizontal scrollbar when using Mozilla Firebird (not in IE). The website (container DIV) should be 770 px wide, so there shouldn't be any reason...
0
by: zlf | last post by:
Hi, There is a Multiline TextBox and I want to make its ScrollBar automatically appear when the page number > 1 ( That is the TextBox rectangle can not show full text ) and disappear when the page...
3
by: MuZZy | last post by:
Hi, Is there a way to: 1. Find out if a scrollbar is currently show on the TextBox 2. Get the width of the horizontal scrollbar I am doing a UserControl with a TextBox with a small image...
1
by: Marco Liedekerken | last post by:
Hi, I want a Horizontal scrollbar to appear in my Panel control when I add new controls to it (when the width is getting too big). The Vertical scrollbar is easy (adding overflow: auto to the...
6
by: Colin McGuire | last post by:
Hello experts, this is a repost but I have been (much) more clear. I want to know the position of the horizontal scrollbar in a textbox as a percentage - if the horizontal scrollbar is hard...
0
by: rezog | last post by:
Hello, I have a template design with a (horizontaly) center - alligned table that contains all data. Now most pages on my website are without scrollbar as the information is presented minimally....
3
by: nicky77 | last post by:
Hi, before you say it i know frames are bad practice - but i'm developing dynamic content on a site which has already been designed, so alas there's no option but to use them. Anyway, I just want to...
0
by: JAVIER TOQUICA | last post by:
'm programming visual c# express 2005 and i have this problem with one textbox with a vertical scorollbar. it is when the visible textbox space is full, the scrollbar appear but it doesn't scroll...
0
by: metaphysics | last post by:
I am using a jQuery script called LocalScroll, and I have a quick problem that needs fixing. The demo for the script is here: jQuery.LocalScroll - Regular Demo, and the documentation is here: Ariel...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.