Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Link Colours 1

Status
Not open for further replies.
Dec 24, 2001
857
GB
Probably a simple solution but websites / HTML aren't really my forte!

Using Dreamweaver I've set the colour for my links in the page properties, but theres one link I would like to be a different colour. I've tried highlighting it and changing it to the colour I want but it doesn't change. Thing is I'm sure this worked before...

How do you set links to be a different colour to that which you set in the page properties?

thanks
 
Nah its just for this one page - its just a normal text link which I would like to be a different colour because of the background its on.

BTW, if you were implying that I should use CSS, I haven't done it for ages and even then it was in Notepad so I can't remember how to do it!
 
Style classes
Code:
<html>
<head>
<style type="text/css">
<!--
a.link1 {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
	color: #FF0000;
	text-decoration: underline;
}
a.link2 {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
	color: #00FF00;
	text-decoration: underline;
}
-->
</style>
</head>
<body>
<p><a href="Page1.htm" class="link1">Link 1</a></p>
<p><a href="Page2.htm" class="link2">Link 2</a></p>
</body>
</html>

Cheech

[Peace][Pipe]
 
Thanks a lot! - that did exactly what I needed and should come in handy in the future too...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top