SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    Feel my RewiredMind KMxRetro's Avatar
    Join Date
    Jan 2001
    Location
    Exeter, Devon, UK
    Posts
    477
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Inline Hover decleration..?

    Somebody PLEASE tell me if it's possible to do something like this:-

    <a href="mylink.htm style="a:hover font.color=#666666">My Text</a>

    What is the correct syntax?

    I have an a:hover declared for all of my pages, but this piece of text needs to change to a different color without affecting the other Hovers.

    Please help!

    Thanks,

  2. #2
    Captain Internet neil's Avatar
    Join Date
    Jun 2001
    Location
    n.ireland
    Posts
    333
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I don't think you can do this inline, though there is a way around it using the class statement.
    Code:
    <style type="text/css"> 
    a:hover { color: #ffffff } 
    a.blah:hover { color: #ff0000 }
    </style>
    that's between the <head> and </head> (you probably already knew that) and then <a href="somepage.html" class="blah">other colour link</a>
    neil - Geocities, the trailer park of the web
    .<.<.<.<.<.<.<.<
    WEB[retype.net] + [guff.org]
    ICQ[273981] AIM[neiim]

  3. #3
    Feel my RewiredMind KMxRetro's Avatar
    Join Date
    Jan 2001
    Location
    Exeter, Devon, UK
    Posts
    477
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Works like a charm!

    Thanks a lot man.


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
  •