Manixa Posted December 30, 2011 Share Posted December 30, 2011 Hey there, how can I change the color of the marked objects in my page ? Like this (mark/select something and see what happens) Quote Link to comment Share on other sites More sharing options...
ignace Posted December 30, 2011 Share Posted December 30, 2011 You could have easily found this by just inspecting the element in your browser. F12 brings up the developer tools. I copy-pasted this from their website: ::selection{ background:#E92C6C; color:#fff; text-shadow: 0 1px rgba(0, 0, 0, .2); } It's not supported in all browsers though: http://reference.sitepoint.com/css/pseudoelement-selection Quote Link to comment Share on other sites More sharing options...
Manixa Posted December 30, 2011 Author Share Posted December 30, 2011 I tried looking for it but found nothing, thanks ! Quote Link to comment Share on other sites More sharing options...
ignace Posted December 30, 2011 Share Posted December 30, 2011 You don't have to try to look, your eyes already do this for you. You just have to point them into the right direction. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.