Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Regular Coder
    Join Date
    Jul 2006
    Posts
    399
    Thanks
    33
    Thanked 7 Times in 7 Posts

    selecting html text with white/transparent selection

    hello
    by default when you select text in a html page the selection is dark blue, how can i make so it is white or transparent?

  • #2
    The Apostate Apostropartheid's Avatar
    Join Date
    Oct 2007
    Posts
    3,215
    Thanks
    16
    Thanked 265 Times in 263 Posts
    You can't; it's part of the OS.
    ...Why would you want to do this?

  • #3
    Regular Coder
    Join Date
    Jul 2006
    Posts
    399
    Thanks
    33
    Thanked 7 Times in 7 Posts
    i need this for a certain div not the entire document, it is implemented here(the background does not change but the letter itself):
    http://ejohn.org/blog/jquery-13-aftermath/

    im sure this is a css tweak, but dont know it.

  • #4
    The Apostate Apostropartheid's Avatar
    Join Date
    Oct 2007
    Posts
    3,215
    Thanks
    16
    Thanked 265 Times in 263 Posts
    The user agent will select a white color as the selection background to make it more visible if the background of the page is too dark/blue/whatever, at least in IE. Chrome doesn't do it, so I assume it's browser-specific.


  •  

    Posting Permissions

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