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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

appreciate if anyone helps

Status
Not open for further replies.

sreelatha

Programmer
Feb 13, 2001
4
US
hi all,
I'm a webdesigner and am using an external style sheet in my site.This works fine with IE but not netscape.the background color and font size for a table is not displaying.Code used in css is:
TABLE.1 {
background-color : #FFFFF0;
font-family : Verdana, Geneva, Arial, Helvetica, sans-serif;
}

code used in html page is:
<table class=1 width=700>
<tr>
<td><font size=2>Welcome to our site</font></td>
</tr>
</table>
 
Try using background: #FFFF00; instead of background-color. If that doesn't work, don't use TABLE.1 as your class name. Netscape sometimes has problems with totally numberic items. Try making the class name alphabetic.

-Harold Blackorby
 
You often have to redefine styles in every table cell with Netscape 4.x - they don't cascade to well unfortunately! Also I heard somewhere that <table> may not even accept background-color from the style sheet, in NS4?
So try calling your class from the <td> instead.

And yes I agree - keep the style alphabetic. Also try not to use font tags - you can get the sizing from your style.

-aside
Another annoying thing is when you have a class, and a style attribute - often they are BOTH ignored - so you have to put all in the style attribute.
b2 - benbiddington@surf4nix.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top