473,666 Members | 2,039 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Width of table in frame with scrollbar

I have a table in a frame with a scrollbar. I want the table to be
100% of the width of the frame excluding the width of the scrollbar.
Opera and Netscape leave space for the scrollbar, but IE6 does not
when in conforming mode (with a transitional DTD). Is there a way
(besides using browser-specific stylesheets) to get all three browsers
to leave room for the scrollbar?

The markup I have is at http://ataru.gomen.org/test.html. The first
frame uses a stylesheet, the second plain markup, the third plain
markup without a DTD, and the fourth uses Javascript. Netscape and
Opera render all four tables with room for the scrollbar, but IE6 only
leaves room for the scrollbar...

--
Christopher Benson-Manica | I *should* know what I'm talking about - if I
ataru(at)cybers pace.org | don't, I need to know. Flames welcome.
Jul 23 '05 #1
8 5256
Once upon a time *Christopher Benson-Manica* wrote:
I have a table in a frame with a scrollbar. I want the table to be
100% of the width of the frame excluding the width of the scrollbar.
Opera and Netscape leave space for the scrollbar, but IE6 does not
when in conforming mode (with a transitional DTD). Is there a way
(besides using browser-specific stylesheets) to get all three browsers
to leave room for the scrollbar?

The markup I have is at http://ataru.gomen.org/test.html. The first
frame uses a stylesheet, the second plain markup, the third plain
markup without a DTD, and the fourth uses Javascript. Netscape and
Opera render all four tables with room for the scrollbar, but IE6 only
leaves room for the scrollbar...


Drop the line with the link to w3c from the DTD
("http://www.w3.org/TR/PR-html40/loose.dtd") and the horizontal scroll
will disapear. For some reason IE don't like the default DTD for pages
within a frameset :-)

--
/Arne
http://w1.978.telia.com/~u97802964/

The old believe everything, the middle-aged suspect everything and the
young know everything. (Oscar Wilde)
Jul 23 '05 #2
Christopher Benson-Manica wrote:
I have a table in a frame
http://www.html-faq.com/htmlframes/?framesareevil
I want the table to be 100% of the width of the frame excluding the
width of the scrollbar.


http://www.allmyfaqs.com/faq.pl?Tableless_layouts

http://www.xs4all.nl/~sbpoley/webmat...lexdesign.html
http://www.allmyfaqs.com/faq.pl?AnySizeDesign

--
Brian (remove "invalid" to email me)
Jul 23 '05 #3
Brian <us*****@juliet remblay.com.inv alid> spoke thus:
http://www.html-faq.com/htmlframes/?framesareevil
I didn't make the design decision to use frames, and I can't change
it.
http://www.allmyfaqs.com/faq.pl?Tableless_layouts


The actual application of the table is, in fact, for tabular data, so
my original question stands.

--
Christopher Benson-Manica | I *should* know what I'm talking about - if I
ataru(at)cybers pace.org | don't, I need to know. Flames welcome.
Jul 23 '05 #4
Arne <us**@domain.in valid> spoke thus:
Drop the line with the link to w3c from the DTD
("http://www.w3.org/TR/PR-html40/loose.dtd") and the horizontal scroll
will disapear. For some reason IE don't like the default DTD for pages
within a frameset :-)


I curse thee Bill Gates! Is there some other workaround that lets the
page continue to be accepted by the W3C validator?

--
Christopher Benson-Manica | I *should* know what I'm talking about - if I
ataru(at)cybers pace.org | don't, I need to know. Flames welcome.
Jul 23 '05 #5
Christopher Benson-Manica wrote:
I didn't make the design decision to use frames, and I can't change
it.
That's too bad.
The actual application of the table is, in fact, for tabular data


Url?

--
Brian (remove "invalid" to email me)
Jul 23 '05 #6
Brian <us*****@juliet remblay.com.inv alid> spoke thus:
That's too bad.
There are a lot of regrettable things about our page design. I may be
able to use a scrollable <div> on my current project, but past
projects are more or less set in stone.
Url?


It's internal, unfortunately, which is why I had to whip up the
mock-up markup I linked to.

--
Christopher Benson-Manica | I *should* know what I'm talking about - if I
ataru(at)cybers pace.org | don't, I need to know. Flames welcome.
Jul 23 '05 #7
Once upon a time *Christopher Benson-Manica* wrote:
Arne <us**@domain.in valid> spoke thus:
Drop the line with the link to w3c from the DTD
("http://www.w3.org/TR/PR-html40/loose.dtd") and the horizontal scroll
will disapear. For some reason IE don't like the default DTD for pages
within a frameset :-)


I curse thee Bill Gates! Is there some other workaround that lets the
page continue to be accepted by the W3C validator?


The validator will accept the DTD even without the link. Just drop the
link part and leave the rest in top of the file, as
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

--
/Arne
Jul 23 '05 #8
Arne wrote:
The validator will accept the DTD even without the link. Just drop the
link part and leave the rest in top of the file, as
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">


Sounds vaguely familiar...

http://www.macromedia.com/devnet/mx/...standards.html
about two thirds of the way down, under the "make that page behave",
subsequently linking to http://www.dwfaq.com/IE6/

Related?

--
Michael
m r o z a t u k g a t e w a y d o t n e t
Jul 23 '05 #9

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

Similar topics

0
1931
by: Toph | last post by:
Bonjour a tous, Hi, I am developing a software in Python using Tkinter. The choice of my team is not to use pyton MegaWidgets. I would like to scroll a frame. This is a peace of my code : # ----------------------------------------------------------------------------- #!/bin/envpython from Tkinter import *
1
3150
by: Toph | last post by:
Hi, I am developing a software in Python using Tkinter. The choice of my team is not to use pyton MegaWidgets. I would like to scroll a frame. This is a peace of my code : # ----------------------------------------------------------------------------- #!/bin/env python from Tkinterimport *
14
21519
by: delerious | last post by:
I need to determine an element's width and height in pixels (not including padding, border, and margin) in Javascript. The element will not have width or height styles specified. In Mozilla, I know I can use document.defaultView.getComputedStyle() to do this. IE does not support document.defaultView.getComputedStyle(). It supports offsetWidth/offsetHeight, but those include the padding and border. IE also supports...
6
3135
by: Timothy Madden | last post by:
Hello Please take a look at this table: http://web.ss.pub.ro/~bat/HelloWorld.php Now the table has the width property set to 100%, which should mean the width available to the browser. Does this mean the width of the browser's window ? On 800x600 IE6.0 the window has a horzontal scroll bar, wich I don't want to be there. You know, sometimes, with other tables, it works...
7
2457
by: ohaya | last post by:
Hi, I have an HTML page that has a single FRAMESET and several FRAMEs on it. One of the FRAMEs contains a page with a table in it. The problem that I'm running into is that when the page is viewed with IE, everything looks fine, but, for some reason, it's possible to scroll the contents of the frame with the table in it, even though we've turned off the scrollbar.
8
1569
by: Dave Cook | last post by:
Hi I would like to create a table that uses the whole width of IE. I have set the table width to 100% and the right margin to 0 on the document but still the table is displayed about 50 pixels short of the window edge. Can anybody help me ? Thanks.
2
17636
by: anx | last post by:
I've got a grid-managed frame, containing a column of Labels, and a corresponding column of Entry widgets. I'd like to be able to display dozens, or even hundreds of rows, and use a vertical scrollbar to scroll through them in the frame. So far i can get a scrollbar to display, but it won't scroll anything. So that's definately wrong. And the columns just chop off at the bottom of the frame, but resizing the window won't make the frame...
1
6001
by: ChrisW | last post by:
Just out of interest, does anyone know what the behaviour of the following is supposed to be: <div style="width: 80%"> <div style="width: 600px"> <!--HTML code goes here --> </div>
2
9440
by: ATR2000 | last post by:
I have setup a Panel to have a width of 100% so that it will adjust to users screensize. Within the panel I have a table. Unfortunately the table holds a lot of data and exceeds the size of the screen. The panel has a height of 350px and the scrollbar is set to auto so that both scrollbars appear when needed. What is happening is that due to the table exceeding the width of the screen the panel is also enlarging its width larger than...
0
8448
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, 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...
0
8356
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,...
0
8871
Oralloy
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...
0
7387
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5666
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();...
0
4198
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4369
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2773
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
2
2011
muto222
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.