/    Sign up×
Community /Pin to ProfileBookmark

Hi – I’m fairly new to this, so I dont know if my question belongs in a “newby” forum, or if there even is a newby forum…

I’ve figured out how to use a style sheet to set the colours for links on a page –

I would like to know if it possible to set different link colours for different parts of the same page.

Reason is, I’ve placed some text links in a table cell with a dark background, and others in a table cell with a light background and its hard to find a link colour that is visible in both.

Mostly I’d just like to know if it’s possible, leaving practicality and design aspects of it aside…

Thanks!

to post a comment
CSS

1 Comments(s)

Copy linkTweet thisAlerts:
@FangMay 23.2004 — <style type="text/css">
<!--
a.dark {color:green;}
a.light {color:yellow;}
-->
</style>

<a href="#" class="dark">link</a>
<a href="#" class="light">link</a>
×

Success!

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