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

Cannot get different linkstyles to work in same div 1

Status
Not open for further replies.

Gert74

Technical User
Jan 26, 2001
48
NL
Hi, my textlinks in a certain div have the following style:

Code:
#main a{ color:#6cc000;  border-bottom:1px dotted #FF6600;text-decoration:none; font-weight:bold}

I also have two imagelinks in the same div, but I don't want these to be underlinde (with border-bottom) so I added a style no_decoration. It looks like this:

Code:
.no_decoration {border-bottom:none;}

The html:
Code:
<h2>over mij</h2>
  <p>Some text with a <a href="over-mij.php">textlink</a>.</p>
  <a href="/contact.php" class="no_decoration"><img src="static/img/btn_vragen_stel_ze_gerust.gif" alt="Knop: Vragen? Stel ze gerust" width="164" height="29" class="button" /></a>
</div>

Unfortunately the imagelink has the same dotted underline as the textlink. Is there anybody out there who can tell me how to get rid of this.

Gert
 
Hi Chris,

Thanks for your answer, but unfortunately it doesn't work. Any other suggestions?

Cheers,


Gert
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top