Select a sentence on your website. The browser's default blue might be the only color you didn't choose.
The ::selection style lets you set the background and text colors people see when they select text.
Add it in Webflow
- Open Site settings → Custom code.
- Paste this into Head code:
<style>
::selection {
background-color: #222222;
color: #FFFFFF;
}
</style>- Replace
#222222with your preferred selection background. Set#FFFFFFto a text color that's readable against it. - Save and publish. Select a few lines on the published website to check the contrast.
This applies across your Webflow website.

.png)

.png)