<tutorialjinni.com/>

Change Text Selection Color CSS

Posted Under: CSS3, Programming, Snippets on Feb 5, 2017
With CSS3 every aspect of the Webpage can be can customized. This CSS code snippet will change the highlight color of the select text both its background and foreground color.
/* Chrome/Firefox/Edge */
::-moz-selection {
    background-color: #445446;
    color: #0fe4e4;
}
/* Safari */
::selection {
   background-color: #445446;
   color: #0fe4e4;
}
This is be rendered like the following image. Change Text Selection Color CSS This is tested in Google Chorme, Firefox and Microsoft Edge browser.
© Tutorial Jinni