Scrollbar Customization

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
aaronz
Advanced
Advanced
Posts: 18
Joined: Tue Jan 18, 2005 5:16 pm

Scrollbar Customization

Post by aaronz »

Does anyone know if it is possible to change the color/style of just the scrollbars that appear on menus that are too big for the browser window, but not have it apply to all other scrollbars as well? I'm not sure if this is a limitation of CSS in general, or if I'm just missing something... Thanks!

Aaron Z
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Post by kevin3442 »

Hi Aaron,

The menu system include a built-in class called .mmenu that you can use to apply global style definitions. So, you could include something like the following in an in-line <style> block or in a .css file:

Code: Select all

.mmenu {
  scrollbar-face-color: #9495B3;
  scrollbar-shadow-color: #70718F;
  scrollbar-highlight-color: #E0E1FF;
  scrollbar-3dlight-color: #bcbddb;
  scrollbar-darkshadow-color: #808080;
  scrollbar-track-color: #BCBDDB;
  scrollbar-arrow-color: #323197
}
If I recall correctly, these attributes are only effective in IE. Here's a reference and a tool that you can use for the code:

http://www.paulgrant.on.ca/ScrollBarColour.shtml
http://www.jessett.com/web_sites/css/cu ... bars.shtml

Hope that helps,

Kevin
Post Reply