Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Applying Vlink color in CSS

Status
Not open for further replies.

KamranFeroz

Programmer
Sep 14, 2000
21
CY
I need to apply vlink color in my applied CSS. I'd tried all combination but did'nt work. Can any one help?
 
In your style section define how your links look:
Code:
<style>
a:link { color: red; }
a:visited { color: blue; }
a:hover { color: #000000; }
a:active { color: #FFFFFF; }
</style>

For example. Note that they should always follow in this order - if not, hover and active will not work. The ones you do not use can be skipped. Colors can be written in hex code or by their corresponding names.

Hope it helps.
 
Hi KamranFeroz,

Here'a a little addition to Vragabond's (excellent) reply:

If you are confused by hex colorcodes, you can also do this:

a:link { color: rgb(255,255,0) }

Note : Valid RGB values are 0 .. 255.

Regards


Jakob
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top