views:

801

answers:

3

I have seen in many weblogs when we select text the background color of the text changes rather than usual blue. This Tech Works in Firefox and Safari, is there any method available for Internet Explorer?

+1  A: 

It can't be done in IE with pure CSS and I don't know of any pre-packaged JS that will get the job done, either.

Tyler Rash
He's right, you know.
Kevin Brown
Ok.. Not a problem
Wazdesign
A: 

Not supported on IE as far as I know. Unless there's some clever hack I don't know about.

Adi
A: 

I think it would be difficult to emulate

  • You could try and set a background colour for the text selected, but the default blue highlighting will probably ruin your effect
  • The browser would probably choke on some systems when someone is selecting a lot of text and changing their selection rapidly.

I think you should use CSS for the browsers that support it, and wait patiently for IE to adopt this.

alex
Thanks Alex.. I hope so
Wazdesign