/    Sign up×
Community /Pin to ProfileBookmark

underline/overline color

Hey, Is it possible to change the underline color without changing the text color?

I’m trying to set-up a class that will set the text’s color to royalblue and also set the text-decoration to both underline and overline with a color of red.
In otherwords, I want the text color royal blue and the underline and overline color red.
Is this possible?

Here’s what I got so far:

[code=html]
<style type=”text/css”>
.page_number{
color: royalblue;
text-decoration: underline overline;
/* Change the underline & overline color to red */
}
</style>
Read pages <font class=”page_number”>157-182</font> and <font class=”page_number”>188-198</font> in The Age of Spiritual Machines.
[/code]

to post a comment
CSS

2 Comments(s)

Copy linkTweet thisAlerts:
@JonaApr 05.2005 — [font=trebuchet ms]You should be using the SPAN tag instead of the FONT tag.[/font]

<i>
</i>&lt;style type="text/css"&gt;&lt;!--
.page_number {
color: royalblue;
border: solid 1px #f00;
border-left: none;
border-right: none;
}
--&gt;&lt;/style&gt;
Copy linkTweet thisAlerts:
@UltimaterauthorApr 06.2005 — Yeah, Nice work-around ?
×

Success!

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