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

A link question.

Status
Not open for further replies.

compxinu

MIS
Sep 20, 2004
40
US
I am using text as a link. Does a text link always have an underline? If possible, what is the code to remove the underline and I would like to use italics.

Thank you.
 
Thank you,

I am a newbie here, so would it look like this? If not where does it go?

<a {text-decoration: none; font-style: italic} href="../subdir/file">Link.</a>


Thanks.
 
You can either make it an inline style declaration:

Code:
<a style="text-decoration: none; font-style: italic;" href="../subdir/file">Link</a>

Or you can declare it for all links:

Code:
<style type="text/css">
a {
    text-decoration: none;
    font-style: italic;
}
</style>

Or for certain <a> tags with a class defined:

Code:
<style type="text/css">
a.theClass {
    text-decoration: none;
    font-style: italic;
}
</style>

*cLFlaVA
----------------------------
Lois: "Peter, you're drunk!"
Peter: "I'm not drunk, I'm just exhausted from stayin' up all night drinking!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top