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.


 Subscribe in a reader

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

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old May 18th, 2007, 17:55
Up'n'Coming Member
Join Date: Jan 2006
Location: Belfast
Posts: 81
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old May 18th, 2007, 17:58
Elite Veteran
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old May 18th, 2007, 18:01
Up'n'Coming Member
Join Date: Jan 2006
Location: Belfast
Posts: 81
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old May 18th, 2007, 18:01
Elite Veteran
Join Date: Aug 2005
Location: That Place
Posts: 2,044
Blog Entries: 1
Thanks: 0
Thanked 37 Times in 37 Posts
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)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old May 18th, 2007, 18:51
Up'n'Coming Member
Join Date: Jan 2006
Location: Belfast
Posts: 81
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!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old May 18th, 2007, 19:14
Elite Veteran
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7  
Old May 18th, 2007, 19:20
Up'n'Coming Member
Join Date: Jan 2006
Location: Belfast
Posts: 81
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8  
Old May 18th, 2007, 19:32
Elite Veteran
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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9  
Old May 18th, 2007, 19:34
Up'n'Coming Member
Join Date: Jan 2006
Location: Belfast
Posts: 81
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!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #10  
Old May 19th, 2007, 22:12
Elite Veteran
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #11  
Old May 22nd, 2007, 18:08
Elite Veteran
Join Date: Aug 2005
Location: That Place
Posts: 2,044
Blog Entries: 1
Thanks: 0
Thanked 37 Times in 37 Posts
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)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
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 10:04.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization 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