Helpful Information
 
 
Category: CSS Help
it must be obvious! css and link underline

I have no idea why this isn't working. I've done this so many times and for some reason, it's just not working this time!

I simply want no link underlines using my stylesheet. It works on all browsers/platforms except NS4.x on the Mac. Why will it not understand text-decoration:none? In fact, it's not seeing the stylesheet at all, since the font and colors are the default. I feel so dumb!

Here's the code:
<STYLE type="text/css">
td {font-family: verdana, arial, helvetica, sans-serif; font-size: 11px; color: #666666;}
a:link {font-family: verdana, arial, helvetica, sans-serif; text-decoration:none; font-size:11; color:#666666;}
a:visited {font-family: verdana, arial, helvetica, sans-serif; text-decoration:none; font-size:11; color:#999999;}
a:hover {font-family: verdana, arial, helvetica, sans-serif; text-decoration:none; font-size:11; color:#000000;}
input {font-family: verdana, arial, helvetica, sans-serif; font-size: 11px; color: #666666;}
</STYLE>

then within the body, in a table I have:
<td height="25"><a href="local.html">local events</a></td>

Correct me if I wrong, but isnt Nutscr--- netscape 4 old? Arent they on version 6 now? I dont know why anyone would want to use netscape anyway.


But I think that it's probably just a browser problem. Is there any option in 4.x that you can turn on and off for style sheets? You may wish to check into that.

Good luck to you

As much as I *wish* I didn't have to bother with Netscape, the fact remains that I do. And I would love to ignore the "older" versions, but at this point in time, I am still developing for NS4.5+ since that's what the clients are asking for.

No there isn't a way to turn stylesheets on/off like you can with javascript. Any other ideas?

chausfeld -

No CSS being applied at all?

In my experience, pseudo-classes have no effect in NS4, so...

a {font-family: verdana, arial, helvetica, sans-serif; text-decoration:none; font-size:11pt; color:#666666;}
a:visited {color:#999999;}
a:hover {color:#000000;}

the hover rule will have no effect in NS4

I put the pt part in there, it could be px, I guess, but you do need something there.

Thanks for the help -- I'll try that and let you know how it works.

But before I do, what do you mean by "pseudo classes"? I do know that hover is not supported by Netscape, however, I'm not understanding why the link is the default color of blue, still has underlines and is in the default font. On NS/Mac, it is not seeing the stylesheet at all (NS/PC is fine).

that worked - thanks! but I still don't understand why it wasn't working before...

not only in this context btw. - but you could easily use JS to check for browserversions and then have seperate stylesheets using a document.write(<link rel...etc.) according to the results of the browser check - just my 5 cents...;)










privacy (GDPR)