Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Netscape and tables 1

Status
Not open for further replies.

bwysocki

Programmer
Sep 19, 2001
38
US
I've designed a web page that looks great in IE6. I try it in Netscape 4.79 and there are a few problems with my table.
(big shock right??) :)

First of all I have the following.

<th width=&quot;110&quot; valign=&quot;center&quot; align=&quot;center&quot; style=&quot;BACKGROUND-COLOR: yellow&quot;><B>Selection</B></th>

It works ok, exept the bold tag is ignored.

Second problem.

<th align=&quot;left&quot;><small>Department:</small></th>

The small tag is ignored.

And lastly..

<td valign=&quot;center&quot; align=&quot;right&quot; style=&quot;BACKGROUND-COLOR: lightyellow&quot; style=&quot;COLOR: red&quot;>blah blah</td>

This line works ok if I only specify the background color. As soon as the foreground color is added, it seems to throw away the background color and give me black text.

I'm sure there's something simple with my code that netscape is choking on. I'm just not sure what.

Is there any good reference out there of stuff that works in IE but doesn't work in netscape???

Thanks,

Bob
 
first

1) instead of <b> use <strong>
2) I dont think that tag is used anymore instead try <h3> or <h4>
3) you have 2 style defenitions in one tag. I think that is incorrect.
style=&quot;BACKGROUND-COLOR: lightyellow; COLOR: red;&quot;

<Signature>
Sometimes the Answer You Are LOOKING for can be FOUND BY SEARCHING THE FAQ'S @&%$*#!!!
</Signature>
 
First - do you have any particular reason to worry about NS4.7? Seems odd that you're testing in the latest version of IE and an ancient version of NS. The number of people using that browser is so small these days that it really isn't worth trying to make sites appear the same to them as they do to modern browser-users, just make it so they can read the site.

You're using a combination of CSS and HTML tags to control your text's appearance, maybe that's what NS doesn't like. I suggest you go (almost) entirely to CSS:
[tt]
<th width=&quot;110&quot; valign=&quot;center&quot; style=&quot;text-align:center; background-color:yellow; font-weight:bold;&quot;>Selection</th>

<th style=&quot;text-align:left; font-size:smaller;&quot;>Department:</th>

<td valign=&quot;center&quot; style=&quot;text-align:right; background-color:lightyellow; color:red;&quot;>blah blah</td>
[/tt]
Better still, put those style definitions in a seperate style sheet and use a class to apply it to the relevant <th>s and <td>s. It'll be much easier to maintain your site that way.

(By the way, <small> is still a valid tag, though you should use CSS instead in most cases)



-- Chris Hunt
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top