Open Source Tutorials - Open Source Training
Open source training & tutorials from experienced, passionate people
chrome icon firefox icon ie icon opera icon safari icon Sings in these Browsers
A- A A+

By A Web Design

Welcome, Guest
Username Password: Remember me

Color of Link Change
(1 viewing) (1) Guest
All your queries regarding HTML will be solved in this forum
  • Page:
  • 1
TOPIC:

Color of Link Change

Color of Link Change 1 year, 9 months ago #141

  • kennedy
  • OFFLINE
  • Fresh Boarder
  • Posts: 12
  • Karma: 0
How can I make color of links change when the cursor is over them?

Re:Color of Link Change 1 year, 9 months ago #152

  • manav
  • OFFLINE
  • Senior Boarder
  • Posts: 51
  • Karma: 0
You can implement the below code into your <head></head> portion of your web page. This is a full example of changing the link properties of your web page. If you wish to just change the link color when moving a mouse over a link you only need the a:hover line.

<style type="text/css">

a:link { COLOR: blue;}
a:visited { COLOR: purple;}
a:active { COLOR: red;}
a:hover { COLOR: green;}

</style>

hover - This is the color that the text is going to be changed to when the mouse is over the link.
  • Page:
  • 1
Time to create page: 1.19 seconds
OSV Newsletter


Receive HTML?

NOTE: To prevent subscription to the OSV newsletter, uncheck the checkbox above.
Guest Blog for OSV
Free Ebook Download