| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
#1 (permalink) |
|
Senior Member
Join Date: Dec 2006
Location: Switzerland
Posts: 350
|
text highlighting color change
Hi, I have seen on a few sites (unfortunately dont remember which ones at the moment) that when I highlight text in the browser, for example to copy text, the highlighting color is something different from my default color. any idea as to how this is achieved, I have tried to find an answer but without success. I figure its most likely a javascript done trick, or possibly some CSS I have never seen before. If I find the websites Im refering to, will post the links. thanks |
|
|
|
|
|
#3 (permalink) |
|
Will work for Marmite
Join Date: May 2007
Location: Sapporo, Japan
Posts: 574
|
No, I think he means the ::selection pseudo-element. (It's part of CSS3) Code:
AFAIK, as of the current time of writing, it's unsupported by Internet Explorer. |
|
|
|
#5 (permalink) |
|
Senior Member
Join Date: Dec 2006
Location: Switzerland
Posts: 350
|
thanks for the response, I guess thats what it is then btw, is CS3 officially finished or still under development ? now that I know what it is, have found an example of it in use: ::selection Last edited by bluesage : 06-06-2007 at 15:24. |
|
![]() |