I recently saw a css website where if you select the text, the selection just changes color instead of the blue highlight which normal websites do. I was wondering how to achieve this? Any help would be greatly appreciated![]()
I recently saw a css website where if you select the text, the selection just changes color instead of the blue highlight which normal websites do. I was wondering how to achieve this? Any help would be greatly appreciated![]()
Here's how to achieve what you want, only works in Firefox / Safari (I think, not 100%)
put this in your CSS:
So let's say you have a class called "content", it would look like this:Code:::selection { background: #FF99CC; } ::-moz-selection { background: #FF99CC; }
Good luck with itCode:.content::selection{ background: #FF99CC; } .content::-moz-selection{ /* For Firefox */ background: #FF99CC; }![]()
me_myself (11-13-2008),Snookerman (11-13-2008)
Bump'n the thread after doing a search. I found this fascinating and have it coded on my site now. Fairly useless other than a customizing point.
http://arctic.ithium.net/
Bookmarks