SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: link question

  1. #1
    SitePoint Member
    Join Date
    May 2002
    Posts
    20
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    link question

    I have a table with links in different cells. I want the color of each cell (not just the background of the link) to change to a different color when I put the mouse over the link.

    Can this be done with CSS? Or how else would you go about it?

    Thanks in advance,
    JEB

  2. #2
    SitePoint Addict
    Join Date
    Sep 2003
    Location
    Europe
    Posts
    222
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    a { display:block; background:#006; }
    a:hover { background:#009; }
    Something like that?

  3. #3
    SitePoint Member
    Join Date
    May 2002
    Posts
    20
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Thank you

    Quote Originally Posted by yngwin
    Code:
    a { display:block; background:#006; }
     a:hover { background:#009; }
    Something like that?
    YES! It works. Thank you so much. I am not familiar with the whole CSS specification and I thought the only way to do what I was trying to do would be with some javascript or similar. This is a lot easier!

    Thanks again,
    JEB


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
  •