forum.coppermine-gallery.net
Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: boltonline on July 09, 2006, 07:19:05 pm
-
I need help changing the color of the scroll bar! i used the css code and its not working!
-
Morning,
ScrollBar color work only with IExplorer, not with Friefox in exemple ;)
PYAP
-
i am using IE. The same css code is working with all my other pages through out the site just not the gallery
the code is
body { color : red; scrollbar-arrow-color: white; scrollbar-base-color: black; scrollbar-dark-shadow-color: black; scrollbar-track-color: FF0000; scrollbar-face-color: black; scrollbar-shadow-color: white; scrollbar-highlight-color: white; scrollbar-3d-light-color: black}
-
Post a link.
-
www.trostmotorsports.com/pics/
-
Again Mornin',
Try to insert this code inside your Theme before </head> :
<style>
BODY {
scrollbar-face-color:FFE860;
scrollbar-track-color:006FA4;
scrollbar-3dlight-color:C0C0C0;
scrollbar-arrow-color:000000;
scrollbar-highlight-color:FFFFFF;
scrollbar-shadow-color:808080;
scrollbar-darkshadow-color:004080;
}
</style>
PYAP
-
and please upgrade (http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#14) your gallery to most recent version ( 1.4.8 but very soon it will be 1.4.9 ;) )
1.4.2 has some security issues
-
Again Mornin',
Try to insert this code inside your Theme before </head> :
<style>
BODY {
scrollbar-face-color:FFE860;
scrollbar-track-color:006FA4;
scrollbar-3dlight-color:C0C0C0;
scrollbar-arrow-color:000000;
scrollbar-highlight-color:FFFFFF;
scrollbar-shadow-color:808080;
scrollbar-darkshadow-color:004080;
}
</style>
PYAP
I dont have a head section in the theme.php file.
-
and please upgrade (http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#14) your gallery to most recent version ( 1.4.8 but very soon it will be 1.4.9 ;) )
1.4.2 has some security issues
updated!
-
I dont have a head section in the theme.php file.
That's why it's suppossed to go into template.html instead of theme.php
-
this is what i have it lookin like:
<style>
BODY {
scrollbar-face-color:FFE860;
scrollbar-track-color:006FA4;
scrollbar-3dlight-color:C0C0C0;
scrollbar-arrow-color:000000;
scrollbar-highlight-color:FFFFFF;
scrollbar-shadow-color:808080;
scrollbar-darkshadow-color:004080;
}
</style>
</head>
still not working.
-
Add hashes in before the colour numbers, eg #FFE860
-
now this is how it looks....<style>
BODY {
scrollbar-face-color:#FFE860;
scrollbar-track-color:#006FA4;
scrollbar-3dlight-color:#C0C0C0;
scrollbar-arrow-color:#000000;
scrollbar-highlight-color:#FFFFFF;
scrollbar-shadow-color:#808080;
scrollbar-darkshadow-color:#004080;
}
</style>
</head>still didnt work
-
are you aware that scrollbar colors only work within IE?
-
yes. thats what i am using and i see the other webpages i used the code on.
are you aware that scrollbar colors only work within IE?
-
you're right, it doesn't show on coppermine but on other html pages. However I don't know why.
-
I checked it if you enable debug the scrolbar of debog frame will change but the main scrolbar not !!!
-
I found the killer ;)
you should remove document type
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
that's the one who laugh at us ;)
but in this way you should remove vanity too
-
thats what it was! thanks a lot!! now i just have to change the colors back to match the site.
I found the killer ;)
you should remove document type
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
that's the one who laugh at us ;)
but in this way you should remove vanity too
-
make sure to remove this line from your theme.php
define('THEME_IS_XHTML10_TRANSITIONAL',1);
-
ok thanks again!
-
Don't skip the doctype completely. It's mandatory to have a doctype declaration. Go for HTML4 transitional.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
Remember that scroll-bar colors just are not standards compliant, that's why the browser chokes on the doctype declaration that actually tells the browser "this document is going to respect standards".
-
that makes it not work
UPDATE: it only wont work when i keep the line "http://www.w3.org/TR/html4/loose.dtd"> in it
Don't skip the doctype completely. It's mandatory to have a doctype declaration. Go for HTML4 transitional.<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
Remember that scroll-bar colors just are not standards compliant, that's why the browser chokes on the doctype declaration that actually tells the browser "this document is going to respect standards".
-
sure it only works then - otherwise the tag would be incomplete. Issue solved then?
-
Yes solved!