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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

[b]help with adding more than 1 css style for links[/b]

Status
Not open for further replies.

butifaro

Programmer
Dec 22, 2004
8
0
0
GB
Hi there

I have created a style for my navigation buttons and would like different colours for my links within my text but do not want to use rollover images. I have looked at faq215-1491 which explains it all but because I do everything in dreamweaver and do not code it in I cannot find and do not understand where to find the code I need to ammend. I guess it is sitting in the external style shhet but I do not know how to access that code.

the site is
can anyone advise me

tanks
janine
 
You can add it to each link as in
Code:
<p><a href="#" style="color:#99FF00">Class 1</a></p>
<p><a href="#" style="color:#FF0000">Class 2 </a></p>
Or you can setup classes as in
Code:
<style>
.class1{
color: red
}
.class2{
color:blue
}
</style>
<p><a href="#" class="class1">Class 1</a></p>
<p><a href="#" class="class2">Class 2  </a></p>

Cheech

[Peace][Pipe]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top