Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Cusomize scrollbars - css?

Reply
Thread Tools

Cusomize scrollbars - css?

 
 
Toby Inkster
Guest
Posts: n/a
 
      08-16-2005
Stefano Palazzo wrote:

> Is there a way to customize the scrollbar(s) of a single DIV with css?
> It should be Valid CSS and Valid XHTML Strict as well


In your <head>:

<meta http-equiv="Content-Style-Type"
content="text/x-extendedstyles">

In your <body>:

<div style="scrollbar-face-color:#C0C0C0;
scrollbar-track-color: #C0C0C0;
scrollbar-arrow-color: #000000;
scrollbar-shadow-color: #000000;
scrollbar-highlight-color: #C0C0C0;
scrollbar-darkshadow-color: #C0C0C0;">foo bar</div>

This is valid XHTML, and (technically) it doesn't use CSS.

Of course, changing scroll bar colours is a stupid idea to begin with -- you'll
only end up confusing your users.

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
DataGridView Scrollbars missing dbuchanan ASP .Net 3 11-18-2008 04:26 PM
Get width of scrollbars Steffen Loringer ASP .Net 0 02-06-2004 08:29 AM
DataGrid with scrollbars mg ASP .Net 2 01-05-2004 03:48 AM
Scrollbars Don ASP .Net 1 12-17-2003 01:47 PM
How to disable gfx scrollbars in Firebird? mario Firefox 0 10-30-2003 01:55 PM



Advertisments