473,396 Members | 1,814 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,396 software developers and data experts.

Variable+Fixed Width tables shwoing improperly in Netscape6

Could someone please tell me why this simple table test is completely
mangled by Netscape?

HTML:
<TABLE WIDTH="90%" ALIGN="center" BORDER="0" CELLPADDING="0"
CELLSPACING="1" BGCOLOR="Black">
<TR>
<TD WIDTH="100" HEIGHT="20" ALIGN="center" BGCOLOR="#eeeeee"
NOWRAP>Left Cell</B></TD>
<TD WIDTH="100%" HEIGHT="20" ALIGN="center"
BGCOLOR="#ffffff">Middle Cell</TD>
<TD WIDTH="100" HEIGHT="20" ALIGN="center" BGCOLOR="#eeeeee"
NOWRAP>Right Cell</TD>
</TR>
</TABLE>

In IE4+/Mozilla/Opera/etc. this table shows three columns, the left
and right cells at 100 pixels, the middle cell taking the reminaing
space, with the text centered in each cell.

In Netscape6 the left and right cells are squished as far as they will
go, and the text is wrapped. All this despite the explicit stating of
left and right cell widths and the no wrap attribute.

Why??? This is standard coding per HTML 3.0 for crying out loud! So,
I ask all of you for both a possible explanation and a "fix" that will
help me deal with this corss-browser display issue.

Thanks in advance.
Jul 20 '05 #1
5 2816
Andrew wrote:
Could someone please tell me why this simple table test is completely
mangled by Netscape?

<TD WIDTH="100"
<TD WIDTH="100%"
<TD WIDTH="100"


Given that there isn't enough space for one cell to take up *all* the space
and the other cells to take up 200 pixels. The browser has to do the best
job it can. Obviously Netscape 4 can't do as good a job at guessing what
you really mean then other browsers.

--
David Dorward http://dorward.me.uk/
Jul 20 '05 #2
David Dorward <do*****@yahoo.com> wrote in message news:<bp*******************@news.demon.co.uk>...
Andrew wrote:
Could someone please tell me why this simple table test is completely
mangled by Netscape?

<TD WIDTH="100"
<TD WIDTH="100%"
<TD WIDTH="100"


Given that there isn't enough space for one cell to take up *all* the space
and the other cells to take up 200 pixels. The browser has to do the best
job it can. Obviously Netscape 4 can't do as good a job at guessing what
you really mean then other browsers.


Two things...

First, this is taking place in Netscape 6. Don't get me started on
N4.

Second, if N6 isn't smart enough to "figure out" that in this case
100% means "give me 100% of the left over space", what is it you need
to state here? IE, Mozilla, Opera, for crying out loud even AOL, all
can figure this out. What must be done to dumb down the code enough
for Nestcape to understand this concept?

-- Andrew
Jul 20 '05 #3
Andrew wrote:
First, this is taking place in Netscape 6. Don't get me started on
N4.
Oh, must have misread.
Second, if N6 isn't smart enough to "figure out" that in this case
100% means "give me 100% of the left over space"
No. 100% means 100% even if YOU mean something else.
, what is it you need to state here?


Nothing at all. Don't specify a width and let the usual table cell width
algorithum work it out.

--
David Dorward http://dorward.me.uk/
Jul 20 '05 #4
On Wed, 19 Nov 2003, Andrew wrote:
Second, if N6 isn't smart enough to "figure out" that in this case
100% means "give me 100% of the left over space", what is it you need
to state here? IE, Mozilla, Opera, for crying out loud even AOL, all
can figure this out.
I think you mean that their error fixup happens to appeal to you. If
you asked for something that was within the published specifications,
you wouldn't be needing to rely on browsers' error fixups.

Well, apropos "ask for", it seems to me that one of the keys to
flexible web page design is knowing when it's better _not_ to specify.
HTML and CSS between them offer a vast number of possible parameters
that one _could_ specify. One has to ask oneself why authors seem
quite content to leave most of the parameters unspecified, yet there's
a shortlist of parameters which they seem stubbornly determined in
every last detail, even though they know very little about the wide
range of presentation situations in which the page will be rendered.
What must be done to dumb down the code enough
for Nestcape to understand this concept?


Browsers don't "understand concepts". To a greater or lesser degree
they implement interworking specifications, and perform error fixups.

What did you mean by "Netscape", anyway? Netscape 7 is just a
packaging of Mozilla. The geriatric Netscape 4.* range of browsers
behave noticeably differently in their Win, Mac, and various Unix
variants.

good luck
Jul 20 '05 #5
"Andrew" <an********@hotmail.com> wrote in message
news:12**************************@posting.google.c om...
David Dorward <do*****@yahoo.com> wrote in message

news:<bp*******************@news.demon.co.uk>...
Andrew wrote:
Could someone please tell me why this simple table test is completely
mangled by Netscape?

<TD WIDTH="100"
<TD WIDTH="100%"
<TD WIDTH="100"


What if you omit the width on the middle column? You have a width defined
for the entire table, so if you have 2 of the columns set at 100 pixels,
then I think the natural action of the browser will be to make the 3rd
column stretch to fit the table width. I haven't tried it though.

Regards,
Peter Foti
Jul 20 '05 #6

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

Similar topics

2
by: Bane | last post by:
Hi all In the SP below im (trying to) do some dynamic sql. As you can see the table to use is set as a variable and the 'exec' method used to run the sqlstatements. My problem is that the 'if...
1
by: Michael Chernecki | last post by:
Hi I have a series of select menus on an online order form. I have limited space for the field width. Is is possible to have the menu width grow automaticallt to accomodate long item names. For...
4
by: Tim | last post by:
Hi, I've been searching the web for hours now and found lots and lots of javascript files with which you can create dropdown menu's, but with all of them you have to specify the width of the...
1
by: Stucco | last post by:
Hi everyone, I'm new to the community but looking forward to answering questions myself. I've got the horizontal menu bar going across the top of my page. There is some stuff above it but it's not...
2
by: silverstriip | last post by:
I am trying to write to different tables depending on a user selected variable (ie: depending on the year selected, the data would goto the correct table). Am I able to setup my fields in my forms...
6
by: OKB (not okblacke) | last post by:
For years now Python has not supported variable-length lookbehinds. I'm just curious whether there are any plans to change this in Python 3.0, or before, or after. It seems that Perl 6 will allow...
1
by: jcm2553 | last post by:
Greetings! I have been using the basic functions in Access for many years and have been able to take care of all my needs until now. My research on this topic indicates that I must use VBA code...
0
by: kelvin.koogan | last post by:
Does .NET have an equivalent to using * to specify the width of a field in printf? I.e. is there an equivalent to: printf(“%*s”, width, “String”) when using String.Format or similar? TIA,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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
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
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.