How to Change the Color of Selected Text - CSS Tutorial
In this article we will find How to Change the Color of Selected Text.This is very simple and basic tips for the web designers and developers. Whenever a person select a text , its color changes to defined color. For example, on my blog theme ,if you select some text you will notice sky blue color in place of default color. Simply add these few lines in your css documents.

::-moz-selection{ background:#C1EEFB ;color:#000 } ::selection{ background:#C1EEFB; color:#000 }
This property is not supported by IE. View Demo
let us know your thoughts? If you found any other tutorials that you want to share with us,feel free to let us know by dropping in a comment.
Related Articles:
if you enjoyed reading this article, please check out other related articles below:










Loading...










































tripwire magazine | tripwire magazinesays on : January 25th, 2010 at 8:12 pm Said:
[...] How to Change the Color of Selected Text – CSS Tutorial [...]
95+ Fresh Community Posts for Web Designers and Developers | tripwire magazinesays on : January 26th, 2010 at 8:50 pm Said:
[...] How to Change the Color of Selected Text – CSS Tutorial [...]
95+ Fresh Community Posts for Web Designers and Developers | Afif Fattouh - Web Specialistsays on : January 27th, 2010 at 8:13 pm Said:
[...] How to Change the Color of Selected Text – CSS Tutorial [...]
kathirvel mariappansays on : January 28th, 2010 at 11:22 am Said:
what we have to do for IE
kathirvel mariappan´s last blog ..google
favSHAREsays on : January 31st, 2010 at 9:33 pm Said:
This article has been shared on favSHARE.net. Go and vote it!
favSHARE´s last blog ..Make Money Online With Domain Purchase
Linkhub – Woche 04-2010 « pehbehbehsays on : February 1st, 2010 at 9:45 am Said:
[...] Die Farbe von markiertem Text verändern. [...]