Design4 min read
Customize the design of slider dots in Webflow

1. Add an embed element and paste in this code
| CSS property | Selector | Description |
|---|---|---|
| background | w-slider-dot | Inactive dot color |
| background | w-slider-dot.w-active | Active dot color |
| width / height | w-slider-dot | Dot size |
| border-radius | w-slider-dot | Shape (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.

<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.

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

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>

