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

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)cyberspace.org | don't, I need to know. Flames welcome.
Jul 23 '05 #1
8 5245
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*****@julietremblay.com.invalid> 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)cyberspace.org | don't, I need to know. Flames welcome.
Jul 23 '05 #4
Arne <us**@domain.invalid> 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)cyberspace.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*****@julietremblay.com.invalid> 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)cyberspace.org | don't, I need to know. Flames welcome.
Jul 23 '05 #7
Once upon a time *Christopher Benson-Manica* wrote:
Arne <us**@domain.invalid> 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
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 : #...
1
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 : #...
14
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...
6
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...
7
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...
8
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...
2
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...
1
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
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...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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,...
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,...

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.