How to Change Text Selection Background Color Using CSS

How to,change text selection background,text,mozselection


Hello Guys and welcome to Wolv Themes Our Tutorial today is about How to Change Color Selection Using CSS.

Let's Start

How to Change Text Selection Background Color Using CSS

Step 1. Go To Blogger's Dashboard and click Themes
Step 2. Press The arrow down button and click Edit Html
Step 3. Click on any word then Press CTRL + F and type ]]></b:skin> then paste this code just above it
/* for Firefox */
::-moz-selection {
       background-color: deeppink;
       color: #fff​;
}
/* for Safari and Chrome */
::selection {
       background-color: deeppink;
       color: #fff​;
}

Rate this article

Frontend Developer and UX Designer

2 comments

  1. Nice
  2. Thanks, Hope Got benefited and enjoyed the post