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

Link color 1

Status
Not open for further replies.

bac2u

MIS
Oct 18, 2002
32
0
0
US
I have a CSS style I'm using for a particular area of my web page and I don't want it to use the link color defined in Page Properties. How can I attach a diffent link style to that section? Thanks for any suggestions.
 
Either

1) define a class for the new link style

Code:
a.newlink{color:#ff9933}
then define your links thus:

Code:
<a href="foo.html" class="newlink">Bar</a>

OR

2) Define a named DIV

Code:
#myDiv a {color:#ff9933}

then put the section of your page with the new link style in that div.

Code:
<div id="myDiv">
<a href="foo.html">Bar</a>
</div>



 
Your suggestion worked great! Thanks so much!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top