Changing Text Selection Color in Mozilla and Safari Browsers.

Vishalneeraj-24503
Posted by Vishalneeraj-24503 under CSS 3 category on | Points: 40 | Views : 371
We have to write 2 different CSS classes for both Mozilla and Safari Browsers.

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


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

Comments or Responses

Login to post response