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 5 1783
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/ >
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/ >
On Jan 15, 10:41*am, Anthony Levensalor <killf...@mypet programmer.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.)
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/ >
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/ > This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 for the scrollbar to
appear at 1024x768.
I think it has something to do with the DIV properties defined in the
inline stylesheet. I hope someone can tell me why the horizontal
scrollbar will appear.
|
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 number equals
one .Thanks
zlf
|
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 placed in the upper right cornet of the
text box. If user typed a lot of text and scrollbar shows, i need to catch the event and move the
image left so that it will not be hidden by the scroll bar.
|
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 style attribute
of the panel element).
Now when I dynamicly add controls to the Panel control the controls are
getting places at the next line (I did not add a <br>) instead of at the
same line (the horizontal scrollbar should appear now).
I...
|
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 left,
I want to display 0% on the form.
- if the horizontal scrollbar is smack in the middle,
I want to display 50% on the form.
- if the horizontal scrollbar is 2/3rd along the X-axis,
| |
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. However there are two or three pages that will require more space, hence scrolling. I have decided to do without CSS overflow property and let the browser adjust itself with its own scrollbar.
Problems appear when pages with no scrollbar are...
|
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 add simple styling to the scrollbar of the left hand frame of the page, but the styling i've applied isn't working for some reason.
The site is at http://www.maguiresonline.co.uk/new_website/index.html
It's the scrollbar in the middle of the...
|
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 down like any program.
what i want is that the text that i write is always visible, i mean the scrollbar to scrolldown automaticly like it should be.
|
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 Flesler: jQuery.LocalScroll. The Local Scroll script uses the toScroll and jQuery scripts to function.
I don't really understand what "hash" means, however the author in the documentation specified that if hash is set to true, the hash of the...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |