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.

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.

Leave a Reply

Your email address will not be published. Required fields are marked *

Latest tutorials

Elementor vs Bricks compared — performance, ease of use, design flexibility, ecosystem, and pricing —...
Build a smooth 3D flip card in Elementor with pure CSS — no plugin, no...
Add a glowing, moving gradient border to any Elementor container or button using pure CSS...
Freelancer Mojibur
freelancer mojibur

Start a Project!

Interested in working together? Send a quick message or schedule a meeting. Ask questions, discuss details, and decide if we are a good fit.

Website Project Inquiry

This form helps me get a general idea. We’ll schedule a meeting soon to discuss everything in more detail!

Freelancer Mojibur

Contact person

For quick communication email at: freelancermojibur@gmail.com