WEST SIDE CALI KILLERS


HOME OF WSCK CLAN
 
HomeCalendarFAQSearchMemberlistUsergroupsstoreRegisterLog in

Share | 
 

 (HTML) How to Create the Hover Effect Only for Certain Links

View previous topic View next topic Go down 
AuthorMessage
Duke Nukem
Moderator
Moderator
avatar

Country : USA
Posts : 174
Caps : 293
Times Thanked : 6
Browser : Internet Explorer

PostSubject: (HTML) How to Create the Hover Effect Only for Certain Links   Wed Jul 25, 2012 6:55 am

How to Create the Hover Effect Only for Certain Links

If you only want certain links to exhibit the mouseover highlighting effect, you can do it by applying those effects to certain classes.

Code:
a.specialeffects:hover {
  color: black ;
  background-color: #ff0 ;
}


The above code will cause links of the class "specialeffects" to have black text against a yellow background when the mouse is over it. To use it make your links like the following:

Code:
<a class="specialeffects">this link will turn yellow</a>

That is, give links that you want the highlighting effect the "specialeffects" class.

You can of course name your classes anything you want, and not just "specialeffects". Whatever name you choose, make sure the name you use in your HTML link matches that in your CSS rules.
Back to top Go down
 

(HTML) How to Create the Hover Effect Only for Certain Links

View previous topic View next topic Back to top 
Page 1 of 1

 Similar topics

-
» Yet another guide to create opening chess book [PolyGlot]
» how to get one muxxu Account back after getting banned. (no Garantee!)
» My Own Flash Based Arena Game
» SAMBUCA 11 Ctg New
» Infinity-X.icb Book (60MB) to InfinityChess GUI

Permissions in this forum:You cannot reply to topics in this forum
WEST SIDE CALI KILLERS :: Computer Related :: Coding :: HTML-