WEST SIDE CALI KILLERS
 (CSS) Code to Highlight Links on MouseOver 23104840
WEST SIDE CALI KILLERS
 (CSS) Code to Highlight Links on MouseOver 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
 

  (CSS) Code to Highlight Links on MouseOver

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

 (CSS) Code to Highlight Links on MouseOver Empty
PostSubject: (CSS) Code to Highlight Links on MouseOver    (CSS) Code to Highlight Links on MouseOver I_icon_minitimeWed Jul 25, 2012 6:33 am

The default style in most browsers for a link can be described as follows:

Code:
a:link {
  color: blue ;
  background-color: transparent ;
  text-decoration: underline ;
}

The a:link portion basically indicates that the block following, enclosed in the curly brackets, is to be applied to links. Each line in the block gives a rule. The line beginning color tells the browser that the anchor text of the link is to be blue. The "transparent" value given to background-color means that whatever was in the background will be visible underneath the link text (including its existing colour). The text-decoration value of "underline" causes the browser to render the text with an underline.

To style the link when the mouse is hovering over it, simply add rules for a:hover. Take the following for example.

Code:
a:hover {
  color: black ;
  background-color: #def ;
}




Back to top Go down
 

(CSS) Code to Highlight Links on MouseOver

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

 Similar topics

-
» (CSS) code for row hover!
» Chatbox backbround pic (CSS code)
» (HTML) How to Create the Hover Effect Only for Certain Links

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