Closed Thread
Results 1 to 7 of 7

Thread: HOVER

  1. #1
    Senior Member megacool is an unknown quantity at this point
    Join Date
    Nov 2000
    Location
    Cyberspace
    Posts
    152

    Question

    using CSS how do i hover individual links with different styles like the left menu link hover with a color change while the other links on the page hover with a underline... i cannot find a work around since anchor <A> can only one hover or is there way to make class or IDs in css to do that..further more how do i make a table cell bg color change when a link is hovered. Thanks
    The truth is out there? Does anyone know the URL?

  2. #2
    NLC Nick is a splendid one to beholdNick is a splendid one to beholdNick is a splendid one to beholdNick is a splendid one to beholdNick is a splendid one to beholdNick is a splendid one to beholdNick is a splendid one to beholdNick is a splendid one to behold Nick's Avatar
    Join Date
    Oct 2000
    Location
    United States
    Posts
    3,493
    Originally posted by megacool
    using CSS how do i hover individual links with different styles like the left menu link hover with a color change while the other links on the page hover with a underline... i cannot find a work around since anchor <A> can only one hover or is there way to make class or IDs in css to do that..further more how do i make a table cell bg color change when a link is hovered. Thanks
    Do something like this:

    Code:
    <style>
    <!--
    A:link {text-decoration: underline;}
    A:active {text-decoration: underline;}
    A:visited {text-decoration: underline;}
    A:hover {text-decoration: none; color: #097754;}
    
    A.menu:link {text-decoration: underline;}
    A.menu:active {text-decoration: underline;}
    A.menu:visited {text-decoration: underline;}
    A.menu:hover {text-decoration: underline; color: #097754;}
    
    A.mmisc:link {text-decoration: underline;}
    A.misc:active {text-decoration: underline;}
    A.misc:visited {text-decoration: underline;}
    A.misc:hover {text-decoration: underline; color: #097754;}
    -->
    </style>
    The first one is default, and the other two are different styles for different links. You can use them like this:

    Code:
    <a href="http://matrix.wox.org/" class="menu">kickass site</a>
    
    <a href="http://www.tgn.f2s.com/" class="misc">work in progress</a>
    I find that easier, but you can do each link individually like this:

    Code:
    <a href="http://matrix.wox.org/" style="text-decoration: none; color: #FF0000;"></A>
    Hope that helps, it took a while to type
    Nick

  3. #3
    NLC Nick is a splendid one to beholdNick is a splendid one to beholdNick is a splendid one to beholdNick is a splendid one to beholdNick is a splendid one to beholdNick is a splendid one to beholdNick is a splendid one to beholdNick is a splendid one to behold Nick's Avatar
    Join Date
    Oct 2000
    Location
    United States
    Posts
    3,493
    Further more...

    The table cell dHTML script can be found at http://www.DynamicDrive.com/
    Nick

  4. #4
    Senior Member megacool is an unknown quantity at this point
    Join Date
    Nov 2000
    Location
    Cyberspace
    Posts
    152

    Smile Thanks NICK

    Thanks a lot! man yes it worked.. thanks again! )))
    The truth is out there? Does anyone know the URL?

  5. #5
    NLC Nick is a splendid one to beholdNick is a splendid one to beholdNick is a splendid one to beholdNick is a splendid one to beholdNick is a splendid one to beholdNick is a splendid one to beholdNick is a splendid one to beholdNick is a splendid one to behold Nick's Avatar
    Join Date
    Oct 2000
    Location
    United States
    Posts
    3,493
    No Problem. Glad to be of some help
    Nick

  6. #6
    Registered User TheRunes is an unknown quantity at this point
    Join Date
    Nov 2000
    Location
    Tucson, AZ
    Posts
    45
    do you know any good CSS tutorials i need to learn...

  7. #7
    Senior Member megacool is an unknown quantity at this point
    Join Date
    Nov 2000
    Location
    Cyberspace
    Posts
    152
    Originally posted by TheRunes
    do you know any good CSS tutorials i need to learn...
    http://webmonkey.com has great tutorials on Cascading Style Sheets.. I learnt it from there.

    Ciao!
    The truth is out there? Does anyone know the URL?

Closed Thread

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