473,480 Members | 1,498 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

IE Scrollbars

CJM
I've been trying to tweak the design of a few pages in one of my ASP apps...

I'm making sure that the layout is reasonable for resolutions between
800x600 and 1024x768. Since it's almost all forms (rather than text) it
takes a bit of extra effort to find the right balance.

At the higher resolution, everything is fine. When I reduce the IE window to
800x600 (via bookmarklet), I'm getting both horizontal and vertical
scrollbars; the vertical scrollbars are to be expected since the forms are
longer than the screen, however the forms should be narrow enough to fit
into you typical 800x600 browser window.

Having puzzled over what was taking up the extra horizontal space, after
testing in Mozilla and Opera, I've just realised that the content is how I
want it, but that IE has taken it upon itself to kindly at a horizontal
scrollbar! Mozilla and Opera only show each axis' scrollbar when necessary.
With IE it's all or nothing.

So the question is... can I do anything about this? Or is this a compulsory
IE 'feature'?

Thanks in advance

Chris
Jul 20 '05 #1
6 3366
"CJM" <cj*****@yahoo.co.uk> wrote:
At the higher resolution, everything is fine. When I reduce the IE window to
800x600 (via bookmarklet), I'm getting both horizontal and vertical
scrollbars; the vertical scrollbars are to be expected since the forms are
longer than the screen, however the forms should be narrow enough to fit
into you typical 800x600 browser window.

Having puzzled over what was taking up the extra horizontal space, after
testing in Mozilla and Opera, I've just realised that the content is how I
want it, but that IE has taken it upon itself to kindly at a horizontal
scrollbar! Mozilla and Opera only show each axis' scrollbar when necessary.
With IE it's all or nothing.
Not usually, but in some circumstances.

There are also some bugs in the way IE calculates total page widths
that can cause horizontal scrollbars to appear unexpectedly.
So the question is... can I do anything about this? Or is this a compulsory
IE 'feature'?


Are you using frames?
Are the pages within the frames using a doctype that triggers
standards mode?
If so then yes, it's all or nothing.

Otherwise post a URL.

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <st***@pugh.net> <http://steve.pugh.net/>
Jul 20 '05 #2
CJM

"Steve Pugh" <st***@pugh.net> wrote in message
news:u0********************************@4ax.com...
Are you using frames?
Are the pages within the frames using a doctype that triggers
standards mode?
If so then yes, it's all or nothing.
Yes, I'm using frames with the 4.01 Transitional DOCTYPE.
Otherwise post a URL.


It's an intranet app. At the moment, I can't even post a mock-up, since all
ftp traffic is currently blocked!

[sigh] I guess I will just have to endure it.

Cheers

Chris
Jul 20 '05 #3
"CJM" <cj*****@yahoo.co.uk> wrote:

"Steve Pugh" <st***@pugh.net> wrote in message
news:u0********************************@4ax.com.. .
Are you using frames?
Are the pages within the frames using a doctype that triggers
standards mode?
If so then yes, it's all or nothing.


Yes, I'm using frames with the 4.01 Transitional DOCTYPE.


Which 4.01 Transtional Doctype?
Some trigger standards mode and some don't.

Steve
--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <st***@pugh.net> <http://steve.pugh.net/>
Jul 20 '05 #4
CJM
"Steve Pugh" <st***@pugh.net> wrote in message
news:8u********************************@4ax.com...

Yes, I'm using frames with the 4.01 Transitional DOCTYPE.


Which 4.01 Transtional Doctype?
Some trigger standards mode and some don't.


Sorry Steve, I should have been explicit:

With DTD - hence I am triggering Standards Mode

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
Jul 20 '05 #5
"CJM" <cj*****@yahoo.co.uk> wrote:
"Steve Pugh" <st***@pugh.net> wrote in message
news:8u********************************@4ax.com.. .
>
>Yes, I'm using frames with the 4.01 Transitional DOCTYPE.


Which 4.01 Transtional Doctype?
Some trigger standards mode and some don't.


Sorry Steve, I should have been explicit:

With DTD - hence I am triggering Standards Mode

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">


Yeah that will do it.

In Standards mode IE6 treats scrolling="auto" as something that
switches between scrolling="yes" (both scrollbars visible) and
scrolling="no" (no scrollbars visible) as required.

In Quirks mode IE6 treats scrolling="auto" as if it was an unframed
page and includes each scrollbar separately as needed.

There isn't really anything in the spec to support this behaviour:
http://www.w3.org/TR/html401/present...adef-scrolling
so it just has to be put down as one of thise crazy MS things. Unless
anyone knows better?

In your case you can either learn to live with it, or drop the URI
from the doctype, thus triggering Quirks mode and all the other
changes that entails.

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <st***@pugh.net> <http://steve.pugh.net/>
Jul 20 '05 #6
CJM
"Steve Pugh" <st***@pugh.net> wrote in message
news:0o********************************@4ax.com...
There isn't really anything in the spec to support this behaviour:
http://www.w3.org/TR/html401/present...adef-scrolling
so it just has to be put down as one of thise crazy MS things. Unless
anyone knows better?
I'd be delighted if someone *did* know better, but I suspect not.

In your case you can either learn to live with it, or drop the URI
from the doctype, thus triggering Quirks mode and all the other
changes that entails.

Steve


Seems to be two steps forwards and another backwards.

Going back to quirks mode would be a retrograde step, so we'll suffer the
Standards-mode 'quirks' (Irony?). The system will be replaced within 15mths,
so a no-frames re-write isnt justified.

If anything, it will serve as further justification for avoiding frames -
you wouldnt think I'd be short of ammo on that score, but you havent met my
bosses...!

Cheers

Chris
Jul 20 '05 #7

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

Similar topics

2
2433
by: Konrad Koller | last post by:
For a card playing game I constructed a layout of 49 playing cards (size of each: x=71, y=96) which are arranged in a 7X7 matrix side by side. Accordingly the pysical size of the Canvas is x=71*7,...
6
11449
by: adrien | last post by:
Hi, (also posted in netscape.public.mozilla.browser) i use netscape 7 and want to hide the scrollbars of the window when something happens. I tried this: window.scrollbars.visible=false...
24
4653
by: Nobody | last post by:
Okay, you are all so smart in here. Answer me this: IE6 in standards mode doesn't seem to hide scrollbars on the body element (overflow:hide) Ain't this a quandary. I have it in my head that I...
5
4322
by: Dennis M. Marks | last post by:
My script opens a window that is supposed to be resizable and scrollable. I am on a Mac. With IE 5.1.7 it works fine. With Netscape 6 there is no scroll bar. I am able to resize it smaller than the...
14
2255
by: Jorg Matter | last post by:
Hello I should like to define the colors of the scrollbars for divs with overflows set to auto. I have a design with black background and white text. Now the scrollbars do not look very nice and...
1
3699
by: Andi Plotsky | last post by:
I have a subform where I dynamically change the SourceObject dependent upon the User's response to questions on the Main form. My problem is that the scrollbars do not show up on either the Main...
1
3662
by: Fabrício de Novaes Kucinskis | last post by:
Hi all, I have to problems concerning datagrids, tabcontrols and scrollbars: 1) I created a form with a TabControl. This TabControl has two TabPages: the first with a datagrid to browse...
17
2064
by: Dino M. Buljubasic | last post by:
I have a treeview and a checked list view controls one beside another. I want to make them work so that when I scroll down or up one of them the other does the same. Any help will be...
10
2150
by: GTi | last post by:
I have a popup window, If this window is to smaal the scrollbars is visible. Is there any JavaScript available so I can check if the scrollbars is visible on page (right and bottom side)? Then I...
2
2370
by: needin4mation | last post by:
Does anyone know what would cause a popup with scrollbars=1 to suddenly lose its scrollbars? I have a popup from window.open (....scrollbars=1..) and it used to be a normal window that would have...
0
7044
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
6908
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...
1
6741
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
6944
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5341
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,...
1
4782
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...
0
4483
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...
0
2985
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
563
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.