/    Sign up×
Community /Pin to ProfileBookmark

link style, the lines

hmmm, this feels weird asking but it doesn´t show as what I want it to.
I just need some selected links to display both underline and overline when I hover the links, so I added the hover style in a css file.

since by default a link has underline I must then add the text a:link decoration to none.

And also when a link was visited even then by default it shows an underline, so I must use a text decoration to none also

That was basic knowledge everyone is familiar with. But once the link is visited the a:visited seems to overrule the hover style and both the underline and overline won´t display when hovering the link again.
————–

SO basically, how do I do so the underline and overline always shows when hovering a link and when it is active, it will stay displayed underline and overline

… the part where I want the active links to be underlined and overlined is a page which there are div layers that are Hidden/Shown.
I click on a link and a div layer is visible on the same page,, the basic you know

to post a comment
HTML

5 Comments(s)

Copy linkTweet thisAlerts:
@soccer362001Sep 20.2004 — Try setting the a:visited the same as the regular a.
Copy linkTweet thisAlerts:
@SiddanauthorSep 20.2004 — I have actually, both a:link and a:visited are set to "none"

even tried a:active... but didnt show much different
Copy linkTweet thisAlerts:
@soccer362001Sep 20.2004 — try using a{} instead of a:link
Copy linkTweet thisAlerts:
@SiddanauthorSep 20.2004 — Hah! whaddya know, the only I missed to try out

so now I use only

a:hover {text-decoration:underline overline}

a:active {text-decoration:underline overline}

a {text-decoration:none}

Thanks for the help, knew this would be easy ?
Copy linkTweet thisAlerts:
@soccer362001Sep 20.2004 — Your welcome
×

Success!

Help @Siddan 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.5,
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: @Yussuf4331,
tipped: article
amount: 1000 SATS,

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

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...