Add

Lorem ipsum

Lorem ipsum

Design

4 min

Customize the design of slider dots in Webflow

1. Add an embed element and paste in this code

CSS propertySelectorDescription
backgroundw-slider-dotInactive dot color
backgroundw-slider-dot.w-activeActive dot color
width / heightw-slider-dotDot size
border-radiusw-slider-dotShape (24px = round, 0 = square)

Tip from Gemeos Webflow agency: adding your code in an embed element instead of in your page settings lets you see the result directly in Webflow without having to publish your site. Super handy for iterating on your CSS design without wasting time. Visible only for HTML/CSS code.

Custom code embed Slider dot Webflow
 

‍

2. Add the style you want

Default design

Color: Enter your desired color instead of the hex code #E0E1DD

Design: Set the desired width, height, and radius by changing the width, height, and border-radius.

CSS Slider dot Webflow

‍

Active design

Same idea as the default state, but for the selected active state by adding "w-active" to the class ".w-slider-dot".

CSS Slider dot actif Webflow

3. Publish, and you're done

good to know

In 2026, Webflow improved global CSS variables. You can centralize your dot colors in Webflow CSS variables and reuse them in your embed to make maintenance easier.

Bonus Tips

To optimize the design of your slider dots on mobile, you can use a media query to target mobile-sized screens. 

Add the code below to your <style> tag

 

Published on 10.04.2025

Let’s f*****G GO !!

Ready to launch
Your business?

Alexandre

Max

Enora

Bryan

Cannelle

Tiphaine

You'll :heart: our collaboration...