Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 9 of 9
  1. #1
    New to the CF scene
    Join Date
    Jul 2002
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Color of link with CSS/NS4

    How can I change the color of a link with using CSS and NS4

    since activated etc. doesn't work

    A.footer:link {font-size: 10px; text-decoration: none; color: #FFFFFF; font-family: verdana, helvetica, arial;}
    A.footer:active {font-size: 10px; text-decoration: none; color: #FFFFFF; font-family: verdana, helvetica, arial;}
    A.footer:visited {font-size: 10px; text-decoration: none; color: #FFFFFF; font-family: verdana, helvetica, arial;}

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Location
    Mumbai, India
    Posts
    218
    Thanks
    0
    Thanked 0 Times in 0 Posts
    NS4 does not support CSS completely. So I am not sure whether you can really changecolor of links using CSS for NS4.

  • #3
    New to the CF scene
    Join Date
    Jun 2002
    Location
    Trondheim. Norway
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Try this

    Try this;

    <style type="text/css">
    <!--
    a:link { font-family: Verdana, Arial, Helvetica, sans-serif; color: #FFFFFF; text-decoration: none}
    a:visited { font-family: Verdana, Arial, Helvetica, sans-serif; color: #FFFFFF; text-decoration: none}
    a:hover { font-family: Verdana, Arial, Helvetica, sans-serif; color: #FFFFFF; text-decoration: none}
    a:active { font-family: Verdana, Arial, Helvetica, sans-serif; color: #FFFFFF; text-decoration: none}
    -->
    </style>

    -RiiWeN
    Yippi!!
    It's SUMMER!!!!!

  • #4
    New to the CF scene
    Join Date
    Jul 2002
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Try this

    Originally posted by RiiWeN
    Try this;

    <style type="text/css">
    <!--
    a:link { font-family: Verdana, Arial, Helvetica, sans-serif; color: #FFFFFF; text-decoration: none}
    a:visited { font-family: Verdana, Arial, Helvetica, sans-serif; color: #FFFFFF; text-decoration: none}
    a:hover { font-family: Verdana, Arial, Helvetica, sans-serif; color: #FFFFFF; text-decoration: none}
    a:active { font-family: Verdana, Arial, Helvetica, sans-serif; color: #FFFFFF; text-decoration: none}
    -->
    </style>

    -RiiWeN
    Nope, this doesn't work

  • #5
    New to the CF scene
    Join Date
    Jun 2002
    Location
    Trondheim. Norway
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Alright!
    But it works in Opera 6.0 and Ie 4.0+
    Hmm...
    *Hate NS*

    -RiiWeN
    Yippi!!
    It's SUMMER!!!!!

  • #6
    New Coder
    Join Date
    Jul 2002
    Posts
    73
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I don't know if HTML is acceptable, but try this:

    <BODY ALINK="ACTIVELINKCOLOR" VLINK="VISITEDLINKCOLOR" LINK="LINKCOLOR">
    <STYLE>
    <!--
    a:hover{
    font-family: Verdana, Arial, Helvetica, sans-serif;
    text-color: COLOR;
    }
    a{
    font-family: Verdana, Arial, Helvetica, sans-serif; // is this line actually necessary?
    text-decoration: none;
    }
    -->
    </STYLE>
    //could't think of anything for hover in HTML

    Alternatively, you could use IDs and JavaScript to handle the onmouseover, onclick, onmouseout, onblur events for the links, but that could get messy, and I don't know if that works for NS4...

    Sorry if I wasn't any help.

    Guardian

    PS: which part of your CSS isn't being processed?

  • #7
    New to the CF scene
    Join Date
    Jun 2002
    Location
    Trondheim. Norway
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    That didn't work to me...

    -RiiWeN
    Yippi!!
    It's SUMMER!!!!!

  • #8
    New Coder
    Join Date
    Jun 2002
    Posts
    30
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Netscape 4 does not support the a:hover or a:active pseudo classes.

  • #9
    Regular Coder
    Join Date
    Jun 2002
    Location
    TEXAS . . . 'nuf said
    Posts
    468
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I'm not 100% sure about this, but I'm pretty sure such CSS styles need to be in a particular order (or you'll have problems).

    They should be (in order):
    link
    visited
    hover
    active



    Now, if you're wanting to change the color onmouseover in the Netscape 4.x browser, you'll need to take a good look at RoyW's handly little script. It's the only one like it that I've ever seen...and I use it on a couple of web sites.

    LOOK HERE! -- http://www.javascript-fx.com/others/index.html (see "Netscape Hover").
    Gordo
    "In the End, we will remember not the words of our enemies, but the silence of our friends."
    - Martin Luther King Jr. (1929-1968)


  •  

    Posting Permissions

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