SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    Get my greedy down dotJoon's Avatar
    Join Date
    Apr 2003
    Location
    daejeon, South Korea
    Posts
    2,223
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    mouse on effect changing color

    Code:
    .editButton { font-size:12px; color:#aaaaaa; border: 1px solid #000; background: #eeeeee;}
    I have the above code in style.

    The class="editButton" is used in the following code.
    Code:
    <span class="editButton">	
       <a href="edit.cfm">edit</a> 
    </span> &nbsp; 
    			
    <span class="editButton">	
       <a href="delete.cfm">delete</a>
    </span>
    I like to make the text color of the button changed to "red," when user's mouse is on the link text which is at http://220.89.242.19:8500/test/007/home/read.cfm?ID=1 .


    How can I do it?

  2. #2
    SitePoint Member
    Join Date
    Aug 2004
    Location
    Canada
    Posts
    13
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    a:hover {color :red ; }

    and any other stuff you need for the hover like borders etc goes in there
    No need for class just for the hover

  3. #3
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    40,556
    Mentioned
    183 Post(s)
    Tagged
    6 Thread(s)
    Have a look at the FAQ sticky thread for a thorough introduction on how to change link colours for specific items

    Paul


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
  •