Netscape 4.7 bug?

M

Mika

Hi,

I have a HTML page which has the following CSS code:

a:link
{
text-decoration: underline;
font-weight: bold;
}

td
{
font-family: Arial, Verdana, Tahoma, sans-serif;
font-size: 9pt;
}

And here is some of the HTML code:

<table>
<tr>
<td>
<a href="home.htm" style="text-decoration: none"><font
color="#EEEEEE">Home 1</font></a>

<table>
<tr>
<td>
Text
</td>

<td>
<table>
<tr>
<td>
Text
</td>
</tr>
</table>
</td>
</tr>
</table>

<a href="home.htm" style="text-decoration: none"><font
color="#EEEEEE">Home 2</font></a>
</td>
</tr>
</table>

The problem is that Netscape 4.7 displays the link "Home 2" with Times
New Roman, not Arial. Why is that? How could I fix that?

Thanks,
Mika
 
R

rf

Mika said:
Hi,

I have a HTML page which has the following CSS code:


<snip code>

The problem is that Netscape 4.7 displays the link "Home 2" with Times
New Roman, not Arial. Why is that? How could I fix that?

Probably because Netscape 4.7 is broken and does not inherit the font
suggestions into the <font> element, but then again who bloody cares about
Netscape 4.7, anybody using it would be used to sites badly breaking.

Cheers
Richard.
 
M

Mika

Probably because Netscape 4.7 is broken and does not inherit
the font suggestions into the <font> element

Thanks, but the situation is same if we remove the <font> element. With
this code I mean:

<table>
<tr>
<td>
<a href="home.htm" style="text-decoration: none">Home 1</a>

<table>
<tr>
<td>
Text
</td>

<td>
<table>
<tr>
<td>
Text
</td>
</tr>
</table>
</td>
</tr>
</table>

<a href="home.htm" style="text-decoration: none">Home 2</a>
</td>
</tr>
</table>

"Home 2" is still with Times New Roman, but why?

Mika
 
C

Christopher Finke

rf said:
Probably because Netscape 4.7 is broken and does not inherit the font
suggestions into the <font> element, but then again who bloody cares about
Netscape 4.7, anybody using it would be used to sites badly breaking.

This wouldn't be the reason for the font inconsistency, for if you remove
all font tags, the same error occurs. My guess would be that the error is
due to the method that Netscape uses to render tables, because removing the
third nested table fixes it. However, the more important question, rather
than "Why does this happen?" is "Why is such a layout necessary?" Tables
should be used for tabular data, not design.

Christopher Finke
 
C

Cameron

rf said:
<snip code>

You use CSS and then resort to using a <font> element to change the colour?
Bad move.

Not really, XHTML Transitional was designed in a way that allows people
to still use older elements/attributes as well as CSS.
Probably because Netscape 4.7 is broken and does not inherit the font
suggestions into the <font> element, but then again who bloody cares about
Netscape 4.7, anybody using it would be used to sites badly breaking.

The fact remains that some people may be using it, and if the site
designer wishes to reach as many people as possible then they should try
their best to work around problems and make the website viewable in as
many browsers as possible.
Cheers
Richard.

~Cameron
 
R

rf

Cameron said:
Not really, XHTML Transitional was designed in a way that allows people
to still use older elements/attributes as well as CSS.

The fact remains that some people may be using it, and if the site
designer wishes to reach as many people as possible then they should try
their best to work around problems and make the website viewable in as
many browsers as possible.

How? By not using such complicated tables for layout. Like hiding *all* CSS
from NN4.x because not only does it barf on CSS it does not understand but
barfs in a completely antisocial way by trying to understand it and getting
it terribly wrong.

Cheers
Richard.
 
B

Brian

Cameron said:
Not really, XHTML Transitional was designed in a way that allows
people to still use older elements/attributes as well as CSS.

<font> was an html "extension." It was not included in any version of
html. Its use is not recommended.

re: NS4
The fact remains that some people may be using it, and if the site
designer wishes to reach as many people as possible then they
should try their best to work around problems and make the website
viewable in as many browsers as possible.

Import all styles. NS 4 users will then be able to access 100% of the
content.
 
C

Cameron

Brian said:
<font> was an html "extension." It was not included in any version of
html. Its use is not recommended.

re: NS4



Import all styles. NS 4 users will then be able to access 100% of the
content.

Font element not included in any version of HTML? check out the "HTML
3.2 Reference Specification" http://www.w3.org/TR/REC-html32 it
includes it in that.

~Cameron
 
C

Cameron

rf said:
How? By not using such complicated tables for layout. Like hiding *all* CSS
from NN4.x because not only does it barf on CSS it does not understand but
barfs in a completely antisocial way by trying to understand it and getting
it terribly wrong.

Cheers
Richard.


it says HTML and XHTML is HTML, and if you doubt it check out the Wold
wide web consortium web site on the subject, they refer to XHTML as HTML
numerous times, http://www.w3c.org/MarkUp/ in fact the name alone
suggests that it is HTML, "Extensible HyperText Markup Language".

~Cameron
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top