/    Sign up×
Community /Pin to ProfileBookmark

hello!!

i’m french .. so excuse my language ?

i would like to know how i can put a color for highlight..

try “select all” with the right button.. et i would like to have the highlighting in yellow

thank for your help !! :p

to post a comment
CSS

2 Comments(s)

Copy linkTweet thisAlerts:
@toicontienFeb 05.2003 — Do you mean the highlight color when you left-click on text and drag the mouse?

If that's the case, those colors are determined by the user's system preferences, not by CSS. I don't know of any way you can change that with CSS.

If you're talking about changing the background color of a link, here's how to do it.

a:hover {

background-color: red;

}

The :hover is a psuedo-class for the anchor tag, for when the mouse hovers over the link.

You could also apply that background-color: color; property to almost any HTML tag.

If that's not what you were aiming for, my apologies.
Copy linkTweet thisAlerts:
@StefanFeb 05.2003 — [i]Originally posted by darkscript [/i]

try "select all" with the right button.. et i would like to have the highlighting in yellow
[/QUOTE]


That will probably be available in CSS 3. But that is not a finished spec and it normally takes about 3-5 years before most users have upgraded to new browsers (if we assume all new browsers correctly implement the spec, eg MS IE is slow with that sometimes...)
×

Success!

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