This is a discussion on "Help with changing colour of hyperlinks" within the Web Page Design section. This forum, and the thread "Help with changing colour of hyperlinks are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Help with changing colour of hyperlinks
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Help with changing colour of hyperlinks
Hi,
I'm sorry to ask what probably seems a really simple question... I have a web page, and don't want the hyperlink underlined apart from when you hover over it. I have the following code entered: <style type="text/css"> A:link {text-decoration: none;} A:visited {text-decoration: none;} A:active {text-decoration: none;} A:hover {text-decoration: underline;} </style> But all the links come out in the set blue colour. I would like to have different links in different colours. Can anyone suggest what I can do? I use Dreamweaver MX. Many thanks Ben |
|
|
|
||||
|
Re: Help with changing colour of hyperlinks
add color: #900; and change the HEX to whatever color you want.
Might want to have a look at some tutorials? HTMLDog |
|
|||
|
Re: Help with changing colour of hyperlinks
Thanks - I wll check out those tutorials.
Where do I add the 'color: #900;' code? And I assume that I replace #900 with the hex of the colour I want for that link? Thanks again Ben |
|
||||
|
Re: Help with changing colour of hyperlinks
also its link, visited, hover, active I believe.
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
|
|
|||
|
Re: Help with changing colour of hyperlinks
Sorry - where abouts do I add the colour code? Am trying to avoid using the graphic one and use the code view, but am just slowly learning!
|
|
|||
|
Re: Help with changing colour of hyperlinks
No problem.. we are happy to help!
Use a small "letter a" and also make sure to always have them in this order. a:link a:visited a:hover a:active Other members taught me to think of Love Hate |
|
|||
|
Re: Help with changing colour of hyperlinks
Thanks - and I like the Love Hate way of remembering! I have added that code, but that will have all the links on the page the same colour. Can I do it so for example:
Link 1 - hover is #666666 Line 2 - hover is #000000 etc Thanks again, Ben |
|
|||
|
Re: Help with changing colour of hyperlinks
You will have to do different names for each navigation. Nav1 and all it's css
nav2 will have it's own code. make sense? |
|
|||
|
Re: Help with changing colour of hyperlinks
Yep! I have basic css knowledge - but I know what you mean! Many thanks for your help!
|
|
||||
|
Re: Help with changing colour of hyperlinks
|
|
||||
|
Re: Help with changing colour of hyperlinks
you can do it several ways i.e. a {} a.foo {} #foo a {}, p a {}, ul li a {} etc etc... depending on your requirements.
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
|
![]() |
| Tags |
| colour, hyperlink, webpage |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [SOLVED] CSS changing page colour etc | R8515198 | Web Page Design | 10 | Nov 27th, 2007 00:54 |
| Changing the colour of the header | hunny | Web Page Design | 4 | Oct 5th, 2007 09:44 |
| Using images as hyperlinks | AdRock | Web Page Design | 2 | Aug 30th, 2006 21:03 |
| Changing properties of hyperlinks? | tom_king88 | Web Page Design | 7 | Jul 7th, 2006 19:58 |
| changing the scroll bar colour | bruno89 | Web Page Design | 2 | Oct 6th, 2005 15:12 |