/    Sign up×
Community /Pin to ProfileBookmark

css hyperlinks

Greetings,

i have a question regarding CSS hyperlinks. Here’s what one of my sheets looks like:

====================
a:link{text-decoration:none; color:#0000ff; font-weight:bold;}
a:visited{text-decoration:none; color:#0000ff; font-weight:bold;}
a:hover{text-decoration:none; color:#00ff00; font-weight:bold;}

p.pic
{
position:absolute;
left:275px;
top:104px;
}

p.message
{
a:link{text-decoration:none; color:#0000ff; font-weight:normal;}
a:visited{text-decoration:none; color:#0000ff; font-weight:normal;}
a:hover{text-decoration:none; color:#00ff00; font-weight:normal;}
position:absolute;
top:475px;

}
============================

i want the hyperlinks in “p.message” to display as normal text, NOT BOLDED like the hyperlinks in “p.pic” appear. What do i need to alter in this code to make this happen?
i would like keep this all within one style sheet.

Thanks for your time,

Nick

to post a comment
CSS

1 Comments(s)

Copy linkTweet thisAlerts:
@David_HarrisonJun 03.2004 — a{
text-decoration:none;
color:#0000ff;
font-weight:bold;
}

p.pic{
position:absolute;
left:275px;
top:104px;
}

p.message{
position:absolute;
top:475px;
}

p.message a{
font-weight:normal;
}
[url=http://www.w3.org/TR/CSS1#contextual-selectors]Contextual selectors[/url]
×

Success!

Help @nick1 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.16,
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,
)...