/    Sign up×
Community /Pin to ProfileBookmark

underlining links

i dont want links to be underlined.
how do i set this without changing the IE options.
i want the link to be underlined only when the cursor is placed on it.

to post a comment
HTML

7 Comments(s)

Copy linkTweet thisAlerts:
@khalidali63Jan 24.2003 — Use CSS to get this doen.

<style type="text/css>

a{

text-decoration:none;

}

a:hover{

text-decoration:underline;

}

</style>

Khalid
Copy linkTweet thisAlerts:
@Red_IceJan 25.2003 — i want my link to stop turning purlpe after i click on them... how would i do that?
Copy linkTweet thisAlerts:
@StefanJan 25.2003 — [i]Originally posted by Red~Ice [/i]

[B]i want my link to stop turning purlpe after i click on them... how would i do that? [/B][/QUOTE]


<style type="text/css">

a:link {color:blue;}

a:visited {color:blue;}

</style>
Copy linkTweet thisAlerts:
@hoonakJan 31.2003 — greetings,

this is my css, but I am not getting a color change. what am i doing wrong?

<i>
</i>A {
font-family: Tahoma;
font-size: 18pt;
line-height: 20pt;
font-style: normal;
font-variant: normal;
font-weight: normal;
text-decoration: none;
color: white;
}
A:hover{color:red;}
A:visited{color:white;}
Copy linkTweet thisAlerts:
@swonJan 31.2003 — set [B]A:link[/B] instead of A and remember if you clicked the link, it'll be visited an no hover can be done, so I would remove the A:visited.
Copy linkTweet thisAlerts:
@King_PellinoreFeb 01.2003 —  so I would remove the A:visited[/quote]Better still, rearrange the order:
A:visited{color:white;}
A:hover{color:red;}

and add an :active statement after as well, for when the user clicks on a link (in a visual CSS browser):A:active {color:yellow;}
Copy linkTweet thisAlerts:
@hoonakFeb 02.2003 — thanks for all your help. it is now fixed. i must also apologize because this really should have gone into the CSS forum.

mr moose
×

Success!

Help @srimca 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.25,
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,
)...