Stop russian invasion of Ukraine 🇺🇦

Customizing text selection color

Customizing text selection color

Quite often you need to change text selection color to fit brand colors or just make a text selection eligible for seeing what you select. Use this script to customize that:


/* Text Selection Color */
::selection {
  background: #173686; /* WebKit/Blink Browsers */
}
::-moz-selection {
  background: #173686; /* Gecko Browsers */
}

That’s it for the first episode. Follow us on the Web or subscribe to get more code snippets and tricks! Feel free to share custom scripts you use in the comment section below, or let us know if you are having any issues with Webflow and we will do our best to help you!

See you in the next episode!

It might be interesting for you

Let’s create together

Start a project

Let’s create together

What are your interested in?

Budget

Timeframe

Personal details

Thank you for getting in touch!
We appreciate you contacting us.
We will get back to you shortly.
Dumka
Something went wrong while submitting the form.
Close