/    Sign up×
Community /Pin to ProfileBookmark

Make a hyperlink without under line

It should be a simple proccess but for some reason I can’t figure out how to make a hyperlink (on text not an image) without the line showing up…. is there a way to do this without having to convert the text to an image?

to post a comment
HTML

6 Comments(s)

Copy linkTweet thisAlerts:
@pyroApr 27.2003 — Yes, you use css like this:

a:link {
text-decoration: none;
}
a:visited {
text-decoration: none;
}
a:active {
text-decoration: none;
}
Copy linkTweet thisAlerts:
@nittynickauthorApr 27.2003 — Thanks! I'll do this.
Copy linkTweet thisAlerts:
@jeffmottApr 27.2003 — If you're going to do that for (almost) every pseudo-class, why not just define it for the entire A element?[size=2]a { text-decoration: none }[/size]
Copy linkTweet thisAlerts:
@nittynickauthorApr 27.2003 — Thanks Jeffmott for your reply...

If it's not to much trouble could you please give me an example for using the words "contact" and "home" in your coding so I can better grasp how to add this coding into my site. I'm not very familiar with using such intense coding - but I learn fast.
Copy linkTweet thisAlerts:
@jeffmottApr 27.2003 — If you were to include it in the head of your page, e.g.[size=2]<head>
... -> your other head elements
<style type="text/css">
a { text-decoration: none }
</style>
</head>[/size]
then this will affect all links on that page. If you only want this to happen to certain sections of your site then you can do so with classes, e.g.[size=2]<head>
... -> your other head elements
<style type="text/css">
.no-link-decoration a { text-decoration: none }
</style>
</head>

<body>

<p class="no-link-decoration"><a href="contact.html">contact</a> |
<a href="index.html">home</a></p>

</body>[/size]
Copy linkTweet thisAlerts:
@nittynickauthorApr 28.2003 — Thanks again!
×

Success!

Help @nittynick spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...