Click to See Complete Forum and Search --> : Highlight
darkscript
02-04-2003, 03:01 AM
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
toicontien
02-04-2003, 10:09 PM
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.
Stefan
02-05-2003, 04:45 AM
Originally posted by darkscript
try "select all" with the right button.. et i would like to have the highlighting in yellow
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...)