Skip to main content
Home / Code Snippets / CSS / Change Text Selection Color

Change Text Selection Color

/* Mozilla based browsers */
::-moz-selection {
       background-color: #FFA;
       color: #000;
}

/* Works in Safari */
::selection {
       background-color: #FFA;
       color: #000;
}
icon-link icon-logo-star icon-search icon-star