#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2001
    Posts
    229
    Rep Power
    14

    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>
  2. #2
  3. Web Monkey
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2001
    Location
    I refuse to be from anywhere, I am one with the internet
    Posts
    76
    Rep Power
    14
    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
    Quick, think of something geeky to say before they catch on!
    Mozilla is your friend!
    Web Site
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2001
    Posts
    229
    Rep Power
    14
    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?
  6. #4
  7. No Profile Picture
    Senior Citizen
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Jan 2001
    Location
    leftcoast
    Posts
    2,019
    Rep Power
    16
    chausfeld -

    No CSS being applied at all?
  8. #5
  9. No Profile Picture
    Beelzebub
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2001
    Location
    The nether regions...ok, San Diego
    Posts
    164
    Rep Power
    14
    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.
  10. #6
  11. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2001
    Posts
    229
    Rep Power
    14
    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).
  12. #7
  13. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2001
    Posts
    229
    Rep Power
    14
    that worked - thanks! but I still don't understand why it wasn't working before...
  14. #8
  15. No Profile Picture
    - better than hex
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2001
    Location
    Odense, Denmark
    Posts
    10
    Rep Power
    0

    Talking Well - the fact is that NS is ****ed


    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...
    Sv!ndel

    - And there will be such intense darkness that one can feel it
    Exodus 10:21

    - It compiles! Let's ship it!

IMN logo majestic logo threadwatch logo seochat tools logo