Help with changing colour of hyperlinks

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.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old May 18th, 2007, 17:55
Up'n'Coming Member
Join Date: Jan 2006
Location: Belfast
Posts: 80
Thanks: 0
Thanked 0 Times in 0 Posts
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
Reply With Quote

  #2 (permalink)  
Old May 18th, 2007, 17:58
karinne's Avatar
SuperMember

SuperMember
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
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
Reply With Quote
  #3 (permalink)  
Old May 18th, 2007, 18:01
Up'n'Coming Member
Join Date: Jan 2006
Location: Belfast
Posts: 80
Thanks: 0
Thanked 0 Times in 0 Posts
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
Reply With Quote
  #4 (permalink)  
Old May 18th, 2007, 18:01
moojoo's Avatar
Moderator
Join Date: Aug 2005
Location: Texas
Age: 31
Posts: 1,761
Blog Entries: 1
Thanks: 0
Thanked 18 Times in 18 Posts
Send a message via AIM to moojoo Send a message via MSN to moojoo Send a message via Yahoo to moojoo
Re: Help with changing colour of hyperlinks

also its link, visited, hover, active I believe.
__________________
The internet is just a fad.
http://www.mevans76.com
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
Reply With Quote
  #5 (permalink)  
Old May 18th, 2007, 18:51
Up'n'Coming Member
Join Date: Jan 2006
Location: Belfast
Posts: 80
Thanks: 0
Thanked 0 Times in 0 Posts
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!
Reply With Quote
  #6 (permalink)  
Old May 18th, 2007, 19:14
SuperMember

SuperMember
Join Date: Sep 2006
Location: Pink House
Posts: 3,946
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Help with changing colour of hyperlinks

No problem.. we are happy to help!
Code: Select all
 <style type="text/css">
a:link {text-decoration: none;
color: #000000
}
a:visited {text-decoration: none;
color: #FF0000
}
a:hover {text-decoration: underline;
color: #666666
}
a:active {text-decoration: none;
color: #333333
}

</style>
.

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
Reply With Quote
  #7 (permalink)  
Old May 18th, 2007, 19:20
Up'n'Coming Member
Join Date: Jan 2006
Location: Belfast
Posts: 80
Thanks: 0
Thanked 0 Times in 0 Posts
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
Reply With Quote
  #8 (permalink)  
Old May 18th, 2007, 19:32
SuperMember

SuperMember
Join Date: Sep 2006
Location: Pink House
Posts: 3,946
Thanks: 0
Thanked 0 Times in 0 Posts
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?
Reply With Quote
  #9 (permalink)  
Old May 18th, 2007, 19:34
Up'n'Coming Member
Join Date: Jan 2006
Location: Belfast
Posts: 80
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Help with changing colour of hyperlinks

Yep! I have basic css knowledge - but I know what you mean! Many thanks for your help!
Reply With Quote
  #10 (permalink)  
Old May 19th, 2007, 22:12
karinne's Avatar
SuperMember

SuperMember
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Help with changing colour of hyperlinks

Bah ... I should have sent you to the CSS Beginner FAQ thread I created
Reply With Quote
  #11 (permalink)  
Old May 22nd, 2007, 18:08
moojoo's Avatar
Moderator
Join Date: Aug 2005
Location: Texas
Age: 31
Posts: 1,761
Blog Entries: 1
Thanks: 0
Thanked 18 Times in 18 Posts
Send a message via AIM to moojoo Send a message via MSN to moojoo Send a message via Yahoo to moojoo
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.
__________________
The internet is just a fad.
http://www.mevans76.com
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
Reply With Quote
Reply

Tags
colour, hyperlink, webpage

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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


All times are GMT. The time now is 21:15.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43