/    Sign up×
Community /Pin to ProfileBookmark

changing a single link colour

Hi there. The links on my page are set to a specific colour (green). There is a single link that I would like to change its colour to red. At the moment I am specifying the link colours in the head but at a later date will change it to specify the colours in a CSS page.

I tried using <span> around the single link and a style sheet to change the link colour using inline styles but it didnt work.

Am I barking up the wrong tree or is it just a syntax thing.

Any comments would be welcome

Thanks in advance.

Mike

to post a comment
HTML

2 Comments(s)

Copy linkTweet thisAlerts:
@BonRougeMay 31.2005 — Here's one way :

CSS
#myredlink a {
color:red;
}


HTML
<i>
</i>&lt;span id="myredlink"&gt;&lt;a href="#"&gt;this is a red link&lt;/a&gt;&lt;/span&gt;
Copy linkTweet thisAlerts:
@mikebgreenauthorMay 31.2005 — Hey Bon Rouge thank you very much ? . I was along the right lines but was slightly out with the syntax.

Brilliant! all done a dusted in 5 minutes flat. What more could you ask for.
×

Success!

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