...

View Full Version : Dreamweaver: Changing the colour of the hyperlinks



J1mmy
09-08-2006, 08:10 PM
I would like to change the defualt blue underlined text into my own set colour. It helps the hyperlinks blend into the site style, I have a certain colour theme for each page, and the blue underlined look just ruins it all. Is this possible, how can I do this?

googleit
09-08-2006, 08:29 PM
have you ever used css?
http://www.w3schools.com/css/default.asp

J1mmy
09-08-2006, 09:37 PM
I havent used CSS before.

I just want something quick, I have many pages to alter and if CSS invovled coding, its going to be very time consuming.

oracleguy
09-08-2006, 09:39 PM
I havent used CSS before.

I just want something quick, I have many pages to alter and if CSS invovled coding, its going to be very time consuming.

It shouldn't take too long at all. You might a stylesheet, you might even be able to do it in DW, that specifies the colors for the links and then add that stylesheet to your pages.

VIPStephan
09-08-2006, 10:18 PM
I havent used CSS before.

I just want something quick, I have many pages to alter and if CSS invovled coding, its going to be very time consuming.

That's what external stylesheets are made for. You change one stylesheet and all pages that are linked with this stylesheet will be changed. In real life this would be like you have the stylesheet called styles.css and a link to it on every page in the head section:


<link rel="stylesheet" href="styles.css" type="text/css" />


And you change the color of all links on all your pages in the css file by typing:


a {color: #[hex value];}

That's a matter of a second and all your links are changed. Same goes for any kind of styling. HTMLDog (http://htmldog.com) is a good website to learn CSS.

J1mmy
09-08-2006, 11:53 PM
While I was actually creating the website, I noticed the CSS styles. I decided to make one which matched one of my text's formatting.

After creating the hyperlink, it changed the formating of the text to the usual blue and underlining, I then changed it back using the CSS style feature in DW.

Is doing that alright, will it take care of it?

Grobulous
09-11-2006, 05:00 AM
I guess. or if for some reason you don't like style sheets, just go to edit the page properties and change the link colors. but I would recommend style sheets. with css, this is how I would do it:


<span class="mytext">hello <a href="#">this</a> is a link</span>

then in a seperate style sheet create a class called mystyle a, and you should have one for at least mystyle a:link, mystyle a:active, and mystyle a:hover. or you could do this at the head of the html doncument within style tags. either way, this will give you greater option of how links will appear, at least better than placing them within the body tag.

but then again, I could have failed miserably at this post.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum