Can you explain me the how can i write css for the browser scrollbar change colors

Just remember that by changing the scrollbar colours it will make your CSS code invalid and it won't work in most browsers, save IE.

You don't change the colors of the scrollbar. That belongs to the user, not to you. The setting is in the Control Panel / Display / Appearance.

IE has a nonstandard way of changing this. It doesn't work in other browsers.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.