473,322 Members | 1,806 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,322 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 5243
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
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.