/    Sign up×
Community /Pin to ProfileBookmark

Simple question – how to add style of links to particular div element?

I have code for links that should be shown only on particular section within div.

[code=php]a:link {
color: #333333;

}
a:visited {
color: #333333;

}
a:link:hover {
color: #e27901;

}

[/code]

How to name if I have div with name like rightpart?

to post a comment
CSS

2 Comments(s)

Copy linkTweet thisAlerts:
@beahawkApr 17.2007 — [CODE]#rightpart a, #rightpart a:hover {color:#333; }
#rightpart a:visited {color:#e27901; }[/CODE]
Copy linkTweet thisAlerts:
@ray326Apr 18.2007 — That of course assume the "name" is an id but the sequencing (link,visited,hover,active) is off.
×

Success!

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