www.webdeveloper.com
Results 1 to 3 of 3

Thread: Highlight

  1. #1
    Join Date
    Feb 2003
    Posts
    1

    Angry Highlight

    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 !!

  2. #2
    Join Date
    Feb 2003
    Location
    Michigan, USA
    Posts
    5,773
    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.

  3. #3
    Join Date
    Nov 2002
    Posts
    984

    Re: Highlight

    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...)
    // Stefan Huszics

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles