/    Sign up×
Community /Pin to ProfileBookmark

Css pirport

I HAVE EXTERNED css , where have font{ color: gray;
font-size: 0.7em}
late , in some part of my font , I want the font be red
but the Hell still gray <font color=”red” >hello</font>
how can I let this part turn to red
Thank you

to post a comment
CSS

3 Comments(s)

Copy linkTweet thisAlerts:
@FangJan 05.2010 — Give the full code you are using.

[I]font[/I] is depreciated, stop using it.
Copy linkTweet thisAlerts:
@WestWebJan 05.2010 — Is this what you're thinking of?

[CODE]<span style="color: gray;">hell</span><span style="color: red;">o</span>[/CODE]

Alternatively, if you want all text red in that section, and just the "hell" part gray:

[CODE]
<div style="color: red;">
<span style="color: gray;">hell</span>o I am red text I am red text
</div>
[/CODE]
Copy linkTweet thisAlerts:
@HJCauthorJan 06.2010 — Thank you WesrWeb
×

Success!

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