Results 1 to 7 of 7

Thread: Stylesheets

  1. #1
    Guest

    Exclamation

    Hi all!

    I am using a style sheet in my pages, and my problem is that I would still like some links to light up even after they have been visited.

    Right now the link itself is shown in dark green. Then when a user hovers over it, it gets lighter green, and when a user has clicked on the page, the link gets dark green again. Now when a user hovers over the same link again, it stays dark green, where I would like for it to turn light green again, so it's more obvious for the user that it's a link.

    Does anybody have any idea on how to achieve that? Thanx!

  2. #2
    Lively Member
    Join Date
    May 2000
    Location
    Canada
    Posts
    70

    HTML Site

    This is a fantastic HTML site for beginners:
    http://htmlgoodies.earthweb.com/

    I'm positive you'll find the answer there.

  3. #3
    Guest
    Okay, thanx for the link, but does anybody have an answer, without me having to read the entire page the link refers to? (Not that I don't think it would be useful, coz I certainly do, atm I just don't have the time to)

  4. #4
    Hyperactive Member compuGEEK's Avatar
    Join Date
    May 1999
    Location
    Mpls,MN,USA
    Posts
    281
    You can use a CSS class to refer to the links:

    example:

    Code:
    A.first {put your first set of styles here}
    A.second {put your second set of styles here}
    You can then refer to the classes
    like this:

    Code:
    <a CLASS ="first" HREF = "http://www.some.url">click me</a>
    <a CLASS = "second" HREF = "http://www.some.url">click me too</a>



  5. #5
    Guest
    Thanx again for the reply, but not that's not really what I'm looking for. My problem is that after a user has visited a link on one of my pages, I still want it to light up when I hover over it, instead of constantly remaining the color specified under the "visited" part of the link class definition in my css.

  6. #6
    Frenzied Member monte96's Avatar
    Join Date
    Sep 2000
    Location
    Somewhere in AZ
    Posts
    1,379
    If I need this sort of functionality, I typically will set BOTH visited and new links to the same class.
    oOOo--oOOo
    __/\/\onte96
    oOOo--oOOo
    Senior Programmer/Analyst
    MCP
    [email protected]
    [email protected]


    Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..

  7. #7
    Hyperactive Member compuGEEK's Avatar
    Join Date
    May 1999
    Location
    Mpls,MN,USA
    Posts
    281
    I agree with monte96....Marcel, try experimenting
    with the link properties, active and visited.


Posting Permissions

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



Click Here to Expand Forum to Full Width