![]() |
HTML Link Colour
Hi,
HTML for Thickies #101 :dunce: How do I change a HTML a href link colour? I've read there can be different colours for the link depending on the state (never clicked, clicked etc) but I want it one colour (white) regardless of it's state. How do I do that? Thanks! |
Re: HTML Link Colour
|
Re: HTML Link Colour
Quote:
In your CSS file add this: Code:
a:link {visted = link has been viisted hover = mouse is over link active = mouse is clicking link The order they are listed is crucial! Colours are numbers between 0-255 (as strength) converted to 2 digit hexadecimal (so 0 = 00 and 255 = FF) in the order Red Green Blue with no spaces and has a # at the start. So red is #FF0000 etc. Black is #000000 and white is #FFFFFF |
Re: HTML Link Colour
Just noticed you wanted your links white so it should be:
Quote:
|
Re: HTML Link Colour
Easier to just put them in one go:
Quote:
|
Re: HTML Link Colour
Cool - thanks - so where do I inset that code into the <a href> command?
|
Re: HTML Link Colour
If you want the styling inline with the href tag then you will have to use something like:
Code:
<a style="color:#FFFFFF;" href="my-page.php">Link text</a>Code:
<head> |
Re: HTML Link Colour
Thanks for the advice - all fixed up! :)
|
| All times are GMT +1. The time now is 03:52. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
All Posts and Content are © Cable Forum