This is a very cool hack which helps you to override or change the default color which appears whenever any text is selected in a browser. Really easy and simple to implement. Its only for Firefox and safari.
::selection {The bold one’s are color codes,you can replace them with the color code of your choice. The above color codes are for blue.
background: #a8d1ff; /* Changes color in Safari */
}
::-moz-selection {
background: #a8d1ff; /*Changes color in Firefox */
}
No Response to "Change the default color which appears whenever any text is selected in a browser"
Post a Comment