Donate SIGN UP

Macromedia Dreamweaver - hyperlink question

Avatar Image
camille79 | 13:09 Tue 12th Jul 2005 | Technology
16 Answers
I'm trying to make links between pages on a Dreamweaver site and, when I make the link, the text in question turns a horrible shade of blue.  Can anyone advise how I can change this colour or stop it happening at all.
Gravatar

Answers

1 to 16 of 16rss feed

Best Answer

No best answer has yet been selected by camille79. Once a best answer has been selected, it will be shown here.

For more on marking an answer as the "Best Answer", please visit our FAQ.
If you look at the source (the plain HTML code), there will be a <body> tag. In there you can specify the colour of link, active links (when the mouse cursor is over the link) and visited links (links that have been clicked).

eg

<body link="#ff0000" vlink="#990000" alink="#ffffff">

would give you red links, with darker red visited links and white active links.

Have a look here for more details :

http://www.htmlhelp.com/reference/wilbur/body/body.html

Alternatively, you can do this much more effectively with CSS :

http://www.echoecho.com/csslinks.htm
You would do this on the style sheet for your site. If you don't have a style sheet set up the links will default to blue and underlined.
Hmm, that should be <body> and

<body link="#ff0000" vlink="#990000" alink="#ffffff">
Question Author
Fantastic - thanks for the advice!
started typing before that post! ignore me - listen to him
Question Author

Okay have tried as you suggested OBonio but can't seem to find where to add the extra text.  This is what I have:

<li><font color="#FFFFFF" size="2" face="Arial, Century Gothic"><a target='_blank' href="Join 20us.htm">Membership scheme for growers and retailers launched</a></font>

Any suggestions where I should add the other text?

There will be, near the start, a <body> tag. Use the Find (usually Ctrl + F) to find the text.
Also, if you put the FONT tag inside the A tag (<a href="..."><font face="..." color="...">My Link</font></a>) this will override what you put in the <body> tag anyway.
the best method is to use CSS. ideally in an external file, but inside the HTML will do.

somewhere within the <HEAD> element, add this:

<style type="text/css">
a {
color: red;
}
a:hover {
color: orange;
}
</style>
Question Author

Cheers Obonio!  That works perfectly. 

No problem, but as both myself and fo3nix said, the BEST solution is to use external CSS files. Then you have one file to control the entire look/feel of your site. Bored with a font? Just change the CSS and the entire site uses that font. They will save for a lot of hassle later.

Have a read here :

http://www.w3schools.com/css/default.asp
In design view, right click on your page and choose Page Properties, under Category choose Links. You can choose how your links look from here just for that one page.  I agree with the others though, if your site is going to grow in size then CSS is the way to go.
camille79, although it looks like you've found a solution, I'd go for the plan B and abandon the answer you have so far and use stylesheets.
I know it sounds like much more hard work, but if you ever have to make any amendment to your site at all in the future it's infinitely easier.

If you need a hand with this, I'd rather do the work for you than see "font" tags!
Question Author
OK Guys, I get the message... CSS is the way forward!  I'm very new to all this so it's been really beneficial having all your advice. Cheers!
basically, HTML should be used for structure only. what you are wanting to do (change the color), is to do with the presentation of the web site. thus, you should use CSS.
This site of mine uses stylesheets. There's some useful info there
http://tinyurl.com/bot7h

In my opinion, AB's site looks better with it's use of images. e.g. the Q and A at the top left of the question and the borders of tables and things.

1 to 16 of 16rss feed

Do you know the answer?

Macromedia Dreamweaver - hyperlink question

Answer Question >>

Related Questions

Sorry, we can't find any related questions. Try using the search bar at the top of the page to search for some keywords, or choose a topic and submit your own question.