Custom colored scrollbars

XenonMB

Joined: 2009-04-06
Posts: 4
Posted: Mon, 2009-04-06 14:54

Hi,

using the following code in the stylesheet of my website, i let it display custom colored scrollbars to fit the theme:

<style type="text/css"> 
<!-- 
BODY { 
			SCROLLBAR-FACE-COLOR: #000000;
			SCROLLBAR-HIGHLIGHT-COLOR: #4C4C4C;
			SCROLLBAR-SHADOW-COLOR: #4C4C4C;
			SCROLLBAR-ARROW-COLOR: #FFFFFF;
			SCROLLBAR-BASE-COLOR: #7F7F7F;
			SCROLLBAR-3d-light-color: #ff0000;
			SCROLLBAR-dark-shadow-color: #000000;

}
-->
</style>

however, in the gallery stylesheet, the same code does nothing. So, my question is, if anybody here knows how i can use custom colored scrollbars on the gallery sites. Thanks in advance for any help supplied.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Mon, 2009-04-06 22:22

Post you changed to the theme.css

It only works in IE.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
XenonMB

Joined: 2009-04-06
Posts: 4
Posted: Mon, 2009-04-06 23:34

i tried putting that code in the theme.css (without the <style> tags) but it seems it still wont accept it or something, the scrollbar stays the way it is. :/

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Tue, 2009-04-07 02:39

Does the theme you are using have :
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> in theme.tpl ?
if it does then colored scrollbars will not work EVEN with IE.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
XenonMB

Joined: 2009-04-06
Posts: 4
Posted: Tue, 2009-04-07 05:18

yes it has that (matrix theme), can i get rid of it somehow or is it needed in any way other than declaring the strict standard?

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Tue, 2009-04-07 13:31

If you get rid of the doctype I bet it will work. You will have to deal with other issues such as font size in the css if you remove it.
It only works for IE, is not good for usability, not standards compliant, and hard for visually impaired people to see. So I don't see the point.

Dave

_____________________________________________
Blog & G2 || floridave - Gallery Team

 
XenonMB

Joined: 2009-04-06
Posts: 4
Posted: Tue, 2009-04-07 16:44

yeah well i probably wont use it now if it has that many incompabilities and stuff but i just wanted to know how you could make it work, thanks a lot.

edit: for the record: it still doesn't work so i think i will try to find a way to have no scrollbars at all and fit the content in.