Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Div Scrollbar - Any way to style it?

Tags:

Is there anyway to control the styling of the scrollbars of a div tag? I am experiencing some contrast issues between IE7 and FireFox 3.5.2. Any help would be greatly appreciated!

like image 660
Dan Appleyard Avatar asked Aug 10 '09 17:08

Dan Appleyard


People also ask

Can you style scrollbar CSS?

As of 2020, 96% of internet users are running browsers that support CSS scrollbar styling. However, you will need to write two sets of CSS rules to cover Blink and WebKit and also Firefox browsers. In this tutorial, you will learn how to use CSS to customize scrollbars to support modern browsers.

How do I customize my vertical scrollbar?

Scrollbar Selectors For webkit browsers, you can use the following pseudo elements to customize the browser's scrollbar: ::-webkit-scrollbar the scrollbar. ::-webkit-scrollbar-button the buttons on the scrollbar (arrows pointing upwards and downwards). ::-webkit-scrollbar-thumb the draggable scrolling handle.

How do I customize my horizontal scrollbar?

The white-space: nowrap; property is used to wrap text in a single line. Here the scroll div will be horizontally scrollable. Example 1: In this example, we have used the overflow-y: hidden; and overflow-x: auto; to make div horizontally scrollable.


1 Answers

Using javascript you can style the scroll bars. Which works fine in IE as well as FF.

Check the below links

From Twinhelix , Example 2 , Example 3 [or] you can find some 30 type of scroll style types by click the below link 30 scrolling techniques

like image 186
Logesh Paul Avatar answered Oct 04 '22 01:10

Logesh Paul