Skip to content

Design4 min read

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
<style>
.w-slider-dot {
background: #E0E1DD;
width:12px;
height:12px;
border-radius:24px;
}
.w-slider-dot.w-active {
background: #009BA6;
width:24px;
}
</style>

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 active Slider dot Webflow

3. Publish, and you're done

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

<style>
/* Media query for mobile-sized screens */
@media (max-width: 768px) {
    .w-slider-dot {
        width: 44px;
    }
    
    .w-slider-dot.w-active {
        /* Add the specific changes for the mobile active state here */
        /* For example, if you want to change the background color: */
        background: #FDBC71; 
    }
}
</style>

Published on Apr 10, 2025

Sandro DA SILVA

Growth Marketer, Webflow expert, and jack-of-all-trades. Sandro handles commercial operations, ensures projects run smoothly, and addresses marketing-related issues (SEO, Tracking, Copywriting, etc).

You're going to working with us, guaranteed

Ready to launch your business?

get a quote

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