SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Zealot kryptokid's Avatar
    Join Date
    Nov 2001
    Location
    Brisbane, Australia
    Posts
    108
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Netscape using default link color instead of css style

    Hi,

    It was recently brought to my attention that when viewed in Netscape 4.78 the links for my website were a different color than what I had specified in the external CSS file. Basically it makes all the links blue, and since the background is a blue color I can't just let the problem go.

    Here's how I call the CSS files from my site:

    Code:
    <link rel="stylesheet" type="text/css" href="sitestyle.css">
    and then in sitestyle.css I have the line:

    Code:
    a:link {font: arial, verdana, Helvetica, sans-serif; color: #f2b415;}
    This code works for IE and Netscape 6 & 7 so I have no idea what could be wrong with it. If I need to display any other code to make it easier to determine what the problem is, let me know.

    Thanks,

    Dan

  2. #2
    SitePoint Zealot kryptokid's Avatar
    Join Date
    Nov 2001
    Location
    Brisbane, Australia
    Posts
    108
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ok I just realised that I wouldn't need to declare the font type in the css file, so I got rid of that line of code and just left the...

    Code:
    a:link {color: #f2b415;}
    ....line there and now it works. Seems to have fixed the problem.

    Dan

  3. #3
    SitePoint Wizard Bill Posters's Avatar
    Join Date
    Dec 2001
    Location
    UK
    Posts
    1,523
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Fwiw, the 'problem' isn't with NN4, but with your use of css shorthand code.
    The font shorthand css attribute requires at least two values to be specified in order to validate/work.
    In this instance NN4 is untypically being very strict (and correct) in its interpretation of CSS.

    Change font to font-family* and it will validate and work as it was intended to.

    (*or add a second attribute value)
    New Plastic Arts: Visual Communication | DesignateOnline

    Mate went to NY and all he got me was this lousy signature


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •