Forum Moderators: not2easy

Message Too Old, No Replies

table width causes NN4.7 to "forget" CSS styles

         

ca9mbu

10:43 am on Dec 4, 2003 (gmt 0)

10+ Year Member



I'm posting this in the hope that a suitable "hack" is available to workaround the problem I'm seeing.

In an external stylesheet I have a style that is used to format part of my table:


table.centered th.tableTitle {
font-family: arial, sans-serif;
font-size: 12pt;
font-weight: bold;
color: black;
background-color: #DDDDDD;
text-align: center;
}

Here's the relevant HTML:


<TABLE class="centered" style="width: 100%;" border="0" cellspacing="0">
<TR>
<TH COLSPAN="7" class="tableTitle">Street Data</TH>
</TR>
<TR>

Obviously (and frustratingly) Netscape refuses to apply the inline style to the table, so I thought of specifying the width as an old-style HTML attribute instead, i.e. WIDTH="100%". Although the table now takes up the full screen width, none of the styles from the external stylesheet are applied.

Before you go on about still using NN4.7 I'm in a corporate environment, who are not too bad at upgrading IE but steadfastly refuse to rollout another version of Netscape!

Cheers,

Matt.

DrDoc

3:40 pm on Dec 4, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to Webmaster World!

I'm afraid that with NN4, you always seem to be stuck between a rock and a hard place. As you probably know too well by now, NN4 has numerous bugs and quirks. Some of those there are workarounds for. Others, well, you just have to pick and choose which bug you can live with.

There have been several discussions about NN4 in this forum, as well as some of the other forums Some of the "keepers" are gathered in the forum library [webmasterworld.com]. A site search [webmasterworld.com] may provide some valuable information for you.

In this case, though I really have no clue if it will actually help or not, you may want to try specifying

border:none
in your style sheet. NN4 has a funky bug causing it not to display any styles unless a border is also specified. Try that...

ca9mbu

3:57 pm on Dec 4, 2003 (gmt 0)

10+ Year Member



Thanks DrDoc. I searched google and this site extensively before posting, believe me! Having said that I never came across the hint to use "border: none" if styles weren't applying properly. Or maybe I did but just ignored/forgot it. Anyway, using it doesn't get the table to fill 100% of the screen width now, but it does maintain all the other styles previously set, so this is "good enough" I think.

How I long for the days of the "One True Browser"...oh yeah and a virus to permanently remove all the rest :)

Cheers,

Matt.