Maybe you've picked a beautiful color scheme for your web site, but you're still stuck with the browsers default scrollbar colors. With some simple CSS code, you can color the scrollbar to match your web site's color scheme. In this article, I show you how to color the browsers scrollbars, and any other scrollbars on your webpage.
Welcome to Bucaro TecHelp!

Bucaro TecHelp
Maintain Your Computer and Use it More Effectively
to Design a Web Site and Make Money on the Web

About Bucaro TecHelp About BTH User Agreement User Agreement Privacy Policy Privacy Site Map Site Map Contact Bucaro TecHelp Contact RSS News Feeds News Feeds

Victims of Sandy Hook

Stop the Slaughter of Innocents. Congress is bought and paid for by gun lunatics and gun promotion groups. If you want to live in a safe America, help buy Congress back for America. Send a donation to Mayors Against Illegal Guns, 909 Third Avenue, 15th Floor New York, NY 10022

Color the Scrollbar

Maybe you've picked a beautiful color scheme for your web site, but you're still stuck with the browsers default scrollbar colors. With some simple CSS code, you can color the scrollbar to match your web site's color scheme. In this article, I show you how to color the browsers scrollbars, and any other scrollbars on your webpage.

The easiest way to color the scrollbar is to apply the scrollbar-base-color property. The code shown below uses an inline style attribute applied to the <body> tag to color the browsers scrollbars.

<body style="scrollbar-base-color:blue;">

In the remaining examples, rather than actually applying color to the scrollbars of the webpage that you're looking at, I'll show you how to apply color to the scrollbars of a <div> element used as a text area.

I'll use some style properties to style the div, which are not related to coloring the scrollbars. In order to simplify things, I won't be repeating those properties in the example code. I list them below just for your information.

width: 400px;
height: 100px;
padding: 10px;
margin: 10px; 
overflow: auto;
border-style: solid;
border-width: 1px;
font-family:verdana;
font-size: 10pt;

Another way to color the scrollbar is to specify a color for each part of the scrollabr separately. The parts of a scrollbar are shown below.

Parts of a scrollbar

RSS Feed RSS Feed


Follow Stephen Bucaro Follow @Stephen Bucaro


Web Design Sections

Fire HD
[Site User Agreement] [Privacy Policy] [Site map] [Search This Site] [Contact Form]
Copyright©2001-2016 Bucaro TecHelp 13771 N Fountain Hills Blvd Suite 114-248 Fountain Hills, AZ 85268