/    Sign up×
Community /Pin to ProfileBookmark

how to customise links separate from body tag

Hi,
I have specified that links should be a certain style using the following in a style sheet.

a:link
a:visited
a:hover
a:active

However, I only really want this to apply to the top menu links. At the moment, all links on the page get this style. How can I specify that other links have a new style?

thanks

to post a comment
CSS

1 Comments(s)

Copy linkTweet thisAlerts:
@soccer362001Apr 22.2004 — Put your menu into a div with an id. Then ajust your css to conform.

EXAMPLE:

<style type="text/css">

#div a:link{color:#000000;}

</style>

<div id="div"></div>

That should work.
×

Success!

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