WEST SIDE CALI KILLERS


HOME OF WSCK CLAN
 
HomeCalendarFAQSearchMemberlistUsergroupsstoreRegisterLog in

Share | 
 

  (CSS) Code to Highlight Links on MouseOver

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: (CSS) Code to Highlight Links on MouseOver   Wed 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

-
» Links in picture reminder
» JOIN THE MOST BEASTLY DOJO WITH THE CODE: AFAEAHGE
» Animal ID code not working?
» Can't Register New Friend Or Receipt Code
» Pink Speaker Starz bear

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