Best of the Australian Flexible Learning Community 2001-2004

Technologies for Learning
Teaching, Training & Learners
Professional Development
Managing Flexible Delivery
Global Perspectives

 

Print this article
Free for education
15 August, 2002
How to Create Coloured Scrollbars

Coloured Scrollbars

Want a fashionable website? Then you need  coloured scrollbars! All the best sites have them! Here’s how to make them.

CSS (Cascading Style Sheets) tags are used to format many parts of a web page and this is what we’ll use. We can have our formatting in a separate file or in the page we are working on. We’ll use tags for the page we are working on for this guide. Our CSS will go between the & tags. The scrollbar can be manipulated as an attribute of the tag, so we set our colours here.


This creates are rather garish scrollbar! You can use named colours as I have done in the example above, or hexadecimal colours such as "#D2691E" for Chocolate. htmlgoodies.earthweb.com/tutors/colors.html contains a good colour chart.

Coloured scrollbars can also be used in forms. Here is an example for the textarea of a form.

Image showing example of custom scrollbar colours on a textarea

These are the basic elements of the scrollbar. You can also colour other areas like the track! See htmlgoodies.earthweb.com/tutors/scrollcolor02.html for more information.

Comments:
15 August, 2002
Bo Schafers
Just thought I'd mention that scrollbar styles are an Internet Explorer 5+ feature. Other web browsers ignore these tags.
15 August, 2002
Geraldine Wicks
Cool
16 August, 2002
margaret cliffe
thanks for this Geraldine - I just love all these little tips