Insights / Tutorial

Custom Scrollbar for an Elementor Container

A styled scrollbar is a small detail that makes a design feel finished and cohesive. This guide shows how to add a custom scrollbar to any Elementor container with simple CSS. Copy the code, match your colors, and refine the look.

LIVE PREVIEW / SCROLLBAR

A scrollbar styled for one container.

Scroll inside the box; the page scrollbar stays independent.

Custom scrollbar

Small interface details can help a design feel complete.

This container has its own scrollable content. The track and thumb use colors that match this preview.

Keep scrolling to see how the content stays inside its frame.

A custom scrollbar should still feel familiar, visible, and easy to use.

A live recreation of the technique explained in the guide below.

A styled scrollbar is a small detail that makes a design feel finished and cohesive. This guide shows how to add a custom scrollbar to any Elementor container with simple CSS. Copy the code, match your colors, and refine the look.

Give your Elementor layouts a little extra polish with a custom scrollbar just for this container. Instead of the default browser look, this CSS lets you style the scrollbar to better match your site’s colors and design, creating a more seamless experience for your visitors. It’s lightweight, easy to drop into your Elementor container’s Custom CSS (or your theme’s stylesheet), and works great for sections with overflowing content. Below is the exact code I’m using to transform the standard scrollbar into a clean, modern UI detail.

Add this Custom CSS in Elementor (Advanced → Custom CSS)

@media(min-width:1023px){
    .Mcsb {
    max-height: 590px; 
    overflow-y: auto !important;
    scrollbar-width: 10px; 
    scrollbar-color: #D9D9D9 #fff; 
    column-gap: 40px;
}
.Mcsb::-webkit-scrollbar {
    width: 10px; 
}

.Mcsb::-webkit-scrollbar-thumb {
    background: #aaa; 
    border-radius: 3px;
}

.Mcsb::-webkit-scrollbar-track {
    background: #ffff; 
}
}

How it works

CSS scrollbar properties let you restyle the track and the draggable thumb, changing their width, color, and roundness. You apply the styles to the container so only that scroll area is affected. Because it is pure CSS, it adds no scripts and no weight.

Tips and customization

  • Match the thumb color to your accent color.
  • Round the thumb for a softer look.
  • Keep enough contrast so the scrollbar stays visible.

FAQ

Does it work in all browsers?
Modern browsers support custom scrollbar styling. Others simply show the default scrollbar.

Does it need a plugin?
No. A few CSS lines are all it takes.

ARTICLE END

Ready to make it work?

I can help turn the idea into a reliable WordPress experience.

Start a conversation ↗

Need help with this?

Let's build it for you

If this guide is close to what you need, I can build the complete solution on your WordPress site.

Prefer email? f@mojibur.com