a:hover

Discussion in 'Web Design & Coding' started by Geffy, Feb 20, 2003.

  1. Geffy

    Geffy Moderator Folding Team

    Messages:
    7,805
    Location:
    United Kingdom
    is it possible to have two a:hover definitions I also need 2 a:link and a:visited definitions now that I think about it.

    I have some sections of my site on a dark background and part of it on white background, so I want white links on the dark bg and black links on white bg.

    as I am planning to pull the white backgrounded page into the index page (the one with white link requirements) via php and SSI can I use separate style sheets for each page? Though both sheets will have to be loaded for the different parts of the end result.
     
  2. Geffy

    Geffy Moderator Folding Team

    Messages:
    7,805
    Location:
    United Kingdom
    I have found a work around, by defining the color of the link in the tags eg

    <a href="" style="color: #000000">link</a>
     
  3. Zedric

    Zedric NTFS Guru Folding Team

    Messages:
    4,006
    Location:
    Sweden
    sure you can:

    PHP:
    a.darklink:hover {...}

    a.lightlink:hover {...}

    ...
    ...

    <
    A HREF="whatever.html" CLASS="darklink">Dark link</A>
    <
    A HREF="whatever.html" CLASS="lightlink">Light link</A>
    Clear enough? :)
     
  4. Geffy

    Geffy Moderator Folding Team

    Messages:
    7,805
    Location:
    United Kingdom
    I think so, but I can be pretty thick sometimes
     
  5. Zedric

    Zedric NTFS Guru Folding Team

    Messages:
    4,006
    Location:
    Sweden
    Well test it and post if there are any problems. :)
     
  6. jonifen

    jonifen pffff...

    Messages:
    705
    looks right to me :)