473,385 Members | 1,782 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,385 software developers and data experts.

Firefox force display of scrollbar

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 displays and then doesn't
display causes the page to visually jump when the scroll bar is shown
then hidden.
Feb 14 '08 #1
6 6110
rf

<ry******@yahoo.comwrote in message
news:83**********************************@e25g2000 prg.googlegroups.com...
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?
No.
Going from page to page where the scroll bar displays and then doesn't
display causes the page to visually jump when the scroll bar is shown
then hidden.
As it does for the other hundreds of millions of web pages out there.

--
Richard.
Feb 14 '08 #2
On Wed, 13 Feb 2008 21:26:50 -0800 (PST), in comp.lang.javascript
"ry******@yahoo.com" <ry******@yahoo.com>
<83**********************************@e25g2000prg. googlegroups.com>
wrote:
>| 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 displays and then doesn't
| display causes the page to visually jump when the scroll bar is shown
| then hidden.
Javascript is a bit of overkill. Use CSS:
html, body { width: 100%; height: 101%; }
-- -------------------------------------------------------------
jn******@yourpantsyahoo.com.au : Remove your pants to reply
-- -------------------------------------------------------------
Feb 14 '08 #3
On Feb 14, 2:42*am, Jeff North <jnort...@yahoo.com.auwrote:
On Wed, 13 Feb 2008 21:26:50 -0800 (PST), in comp.lang.javascript
"ryanm...@yahoo.com" <ryanm...@yahoo.com>
<83cba9f5-b77e-45fc-a022-68a597459...@e25g2000prg.googlegroups.com>
wrote:
| 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 displays and then doesn't
| display causes the page to visually jump when the scroll bar is shown
| then hidden.

Javascript is a bit of overkill. Use CSS:
html, body { width: 100%; height: 101%; }
For the love of God, don't do that.
Feb 14 '08 #4
SAM
ry******@yahoo.com a écrit :
>
Going from page to page where the scroll bar displays and then doesn't
display causes the page to visually jump when the scroll bar is shown
then hidden.
It is a question about CSS

body { overflow-y: scroll; } /* CSS 3 ? */

or

body { height: 101% } /* hideous */

The 1st doesn't work with my Safari 2, Opera 9.
(perhaps it works with IE 6 or/and 7 ?)

But all my browsers display (on Mac) something not too ugly with

body { overflow: scroll }

that display clear gost scrollbars when normal aren't necessary
Feb 14 '08 #5
On Feb 14, 3:28*am, SAM <stephanemoriaux.NoAd...@wanadoo.fr.invalid>
wrote:
ryanm...@yahoo.com a écrit :
Going from page to page where the scroll bar displays and then doesn't
display causes the page to visually jump when the scroll bar is shown
then hidden.

It is a question about CSS

* * body { overflow-y: scroll; } */* *CSS 3 ? **/

or

* * *body { height: 101% } * * * /* hideous */
That's worse than hideous. It's completely insane.
>
The 1st doesn't work with my Safari 2, Opera 9.
It might work in newer versions of FF.
(perhaps it works with IE 6 or/and 7 *?)
As Gregor noted, IE (idiotically) displays a scrollbar whether it is
needed or not, so it isn't part of the "problem."
>
But all my browsers display (on Mac) something not too ugly with

* * * body { overflow: scroll }

that display clear gost scrollbars when normal aren't necessary
Horizontal and vertical of course. What a waste that would be.
Feb 14 '08 #6
SAM
David Mark a écrit :
On Feb 14, 3:28 am, SAM <stephanemoriaux.NoAd...@wanadoo.fr.invalid>
wrote:
>ryanm...@yahoo.com a écrit :
>>Going from page to page where the scroll bar displays and then doesn't
display causes the page to visually jump when the scroll bar is shown
then hidden.
It is a question about CSS

body { overflow-y: scroll; } /* CSS 3 ? */

or

body { height: 101% } /* hideous */

That's worse than hideous. It's completely insane.
I agree but if that pleases to the OP ... :-/
> body { overflow: scroll }

that displays ghosts clearly of scrollbars when normal are not necessary

Horizontal and vertical of course. What a waste that would be.
Absolutely.

--
sm
Feb 14 '08 #7

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

Similar topics

4
by: Roberto | last post by:
Hi everyone, I'm new here... I have a frameset header/contents. It's necessary to force the header's scrollbar to be visible to preserve the alignment between the two frames (see...
11
by: Diane Wilson | last post by:
I'm still working my way through the CSS box model to do tableless layout. Thanks to all here who have helped previously; I'm making progress but still running into issues. This site is *almost*...
2
by: carballosa | last post by:
Hi guys, I need to use a one row datagrid in my asp.net 1.1 application. The data source will contain 1 or 0 entries. When no rows of data are present I want to show an empty row in the datagrid...
1
by: dhnriverside | last post by:
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...
4
by: Price Brattin | last post by:
I dragged a datagrid onto a VB.Net WinForm and used the properties page and a few lines of code to set it up, including the DataSource. No wizard setup was used. It works fine except for one...
4
by: cjaserver | last post by:
This works fine in IE, but is breaking in Firefox, and reported in Netscape as well. I can't determine why. http://www.chartermainstreetgld.com click on the real estate section on the left nav...
3
by: Paul | last post by:
I found a great site for CSS tempaltes, http://blog.html.it/layoutgala/ . I downloaded them, and played around with them. Then I tried to use the template in as ASP.Net MasterPage, but everything...
1
by: Adam K. | last post by:
Hello, I have a site I'm working on for a customer and trying to figure out why its displaying differently in IE7 than it is in Firefox. ...
7
by: burtonfigg | last post by:
On this test page: http://jimpix.co.uk/clients/a/photos/ I have a "sub navigation" UL below the main navigation UL. When viewed in Firefox 3, there is a 10px gap between the subnav UL and the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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...

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.