WEST SIDE CALI KILLERS
(HTML) How to Create the Hover Effect Only for Certain Links 23104840
WEST SIDE CALI KILLERS
(HTML) How to Create the Hover Effect Only for Certain Links 23104840
WEST SIDE CALI KILLERS
Would you like to react to this message? Create an account in a few clicks or log in to continue.


HOME OF WSCK CLAN
 
HomeSearchLatest imagesstoreRegisterLog 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
Duke Nukem

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

(HTML) How to Create the Hover Effect Only for Certain Links Empty
PostSubject: (HTML) How to Create the Hover Effect Only for Certain Links   (HTML) How to Create the Hover Effect Only for Certain Links I_icon_minitimeWed 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

-
» Light on hover profile
» HTML Tables
» HTML Table Tags

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