Page 1 of 1

Highlighting text - not background

Posted: Fri Aug 11, 2006 12:35 pm
by Luke
I've noticed on a few sites that when I highlight text, it doesn't invert the text-color and background color like it normally does. They have done something to make it just change the text color. This is some type of css I'm sure, but I couldn't find it.

For example: http://cakephp.org/

It doesn't work in IE either.

Posted: Fri Aug 11, 2006 1:35 pm
by neophyte
For me when I clicked and dragged to highlight the text, I didn't get a highlight until I activated another window. I pasted it into a text file and could see that the page that was previously unhighlighted was now highlighted. (Firefox to PHPEdit) But now that I think of it, I wouldn't have been likely to figure it out if it weren't for my dual monitor set up.

Posted: Fri Aug 11, 2006 2:02 pm
by nickvd
I saw a page, linked from digg (iirc) that explained how to do it, it's a firefox only thing though, I can't find the url, but i'll post back if i do...


<edit>

... That was quick...

http://www.quirksmode.org/css/selection.html

</edit>