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!

Underlined Links 2

Status
Not open for further replies.

cohans

Programmer
Aug 21, 2001
35
0
0
US
I want to have 2 sets of links: those that are underlined, and others that are not (for an image that has some text next to it within the same <a>; I don't want the text underlined.)

Can I create something in my css that defines the 2 forms? I already have the style defined for the underlined links. If I can do this, how do I set a link to the non-underlined style? Thanks.
 
Yes. Example CSS:
Code:
/* generic <A> */
a { color: red; text-decoration: underline }
/* <A> with class set to special */
a.special  { text-decoration: none }

Hope this helps. Cheers, Neil :cool:
 
It looks like it will, but how do I specify and <a> with one version over the other? Thanks.
 
It looks like it will, but how do I specify an <a> with one version over the other? Thanks.
 
You can do that for the special ones with:

<A class=&quot;special&quot;>

Erik
 
I had just gotten to that in my HTML book. It helps to read the book, I'm just too impatient. Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top