Change text selection color
4 posts
Page 1 of 1
I just found this simple cool trick to change the text's selection color (that OLD blue rectangle
).
Just place this code in the main stylesheet file (usually style.css ) of you're website.

Just place this code in the main stylesheet file (usually style.css ) of you're website.
Code: Select all
You can find more about this HERE.::selection {
background: #ffb7b7; /* Safari */
}
::-moz-selection {
background: #ffb7b7; /* Firefox */
}
Last edited by XTechVB on Wed Nov 06, 2013 11:48 am, edited 1 time in total.
You can find me on Facebook or on Skype mihai_92b
cool 

visit us on:
http://www.softpedia.com/get/System/Lau ... -Run.shtml
Check it out ! http://www.softpedia.com/publisher/I-A- ... 90017.html
Check it out ! http://www.softpedia.com/get/Desktop-En ... lock.shtml
http://www.softpedia.com/get/System/Lau ... -Run.shtml
Check it out ! http://www.softpedia.com/publisher/I-A- ... 90017.html
Check it out ! http://www.softpedia.com/get/Desktop-En ... lock.shtml
I never knew this could be done through CSS. I just always assumed they were using JavaScript or something to change the color.
Thanks for the share, and +rep
Thanks for the share, and +rep
Once I also see this at the same site, And It's Awesome!
Good Sharing cooll;
Good Sharing cooll;
4 posts
Page 1 of 1
Copyright Information
Copyright © Codenstuff.com 2020 - 2023