Welcome to Tech Support Forum home to more then 136,000 problems solved. Issues have included: Spyware, Malware, Virus Issues, Windows, Microsoft, Linux, Networking, Security, Hardware, and Gaming Getting your problem solved is as easy as:
1. Registering for a free account
2. Asking your question
3. Receiving an answer

Registered members:
* Get free support
* Communicate privately with other members (PM).
* Removal of this message
* See fewer ads.
* And much more..

 





Want to know how to post a question? click here Having problems with spyware and pop-ups? First Steps
Go Back   Tech Support Forum > Design Forum > Web Design & Programming
User Name
Password
Site Map Register Donate Rules Blogs Mark Forums Read

Web Design & Programming Discussion of web design, and server-side & client-side scripting

Reply
 
Thread Tools
Old 06-29-2008, 06:15 AM   #1 (permalink)
Registered User
 
Join Date: May 2008
Posts: 6
OS: winxp sp2


Changing colour of ONE hyperlink only

Hi,
I'm trying to design a site and obviously there are a lot of hyper links throughout. With most of the hyper links, I'm happy to keep the original blue underlined font. However, a small number of hyper links are used as titles, and I'd rather they were black and underlined instead of blue. I'm using Dreamweaver and am struggling to format it so that most of the hyperlinks are blue underlined, but a select few are black underlined. Is there any code I can put in to change this? Or any way to change it through the formatting options?
Any help appreciated, thanks.
taps77 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Bookmark on Thread SoupReddit!
Reply With Quote
Old 06-29-2008, 08:14 AM   #2 (permalink)
TSF Enthusiast
 
jamiemac2005's Avatar
 
Join Date: Jul 2007
Location: Northampton, UK
Posts: 914
OS: Win Vista Home Premium & Ubuntu Hardy(8.04)


Re: Changing colour of ONE hyperlink only

Hey, some simple css would sort this out for you... if you could post your code we could get a decent insight into the structure of your site and advise you on what to do... The idea is that you would change the link's class to another class with black as the "color" property.. It shouldn't be hard, but it would help us loads if you could post your code so we can get it right...

Cheers,
Jamey
jamiemac2005 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Bookmark on Thread SoupReddit!
Reply With Quote
Old 06-29-2008, 12:30 PM   #3 (permalink)
Registered User
 
Join Date: Mar 2008
Location: South East England
Posts: 69
OS: Windows Vista 32bit Home Premium


Re: Changing colour of ONE hyperlink only

yea, as jamey said you just create a class using css which is assigned to the particular hyperlink you want to change colour or anything else needed to do to it (border, colour, underlining, size etc.)
Killer Squirrel is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Bookmark on Thread SoupReddit!
Reply With Quote
Old 06-29-2008, 02:32 PM   #4 (permalink)
Registered User
 
Join Date: May 2008
Posts: 6
OS: winxp sp2


Re: Changing colour of ONE hyperlink only

thanks for the replies. sorry i'm a bit new to all this do you want the code for the whole page or just around the hyperlink(s) in question?
taps77 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Bookmark on Thread SoupReddit!
Reply With Quote
Old 06-29-2008, 02:41 PM   #5 (permalink)
TSF Enthusiast
 
jamiemac2005's Avatar
 
Join Date: Jul 2007
Location: Northampton, UK
Posts: 914
OS: Win Vista Home Premium & Ubuntu Hardy(8.04)


Re: Changing colour of ONE hyperlink only

Send us the whole code, then we can see the entire structure of the code (and it can be more modular)... Basically what we intend to do is add the following to the head of the page:

Code:
<style type="text/css">
.alternateLink{
color:#000;
}

</style>

and change the links so that they look something like:

Code:
<a href="blah.htm".........class="alternateLink"....>
But doing this may mess with your origional classes so you would have to modify the origional code intelligently rather than just inserting the code

Cheers,
Jamey
jamiemac2005 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Bookmark on Thread SoupReddit!
Reply With Quote
Reply


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

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



All times are GMT -7. The time now is 08:18 PM.



Copyright 2001 - 2008, Tech Support Forum

Search Engine Friendly URLs by vBSEO

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 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82