HTML/Web Design Question

GTaudiophile

Lifer
Oct 24, 2000
29,767
33
81
I'm noticing that more and more sites have their page sliders the same color as the rest of the site instead of the normal gray-on-light-gray page slider. Check out Digital Blasphemy's web site and see their black-on-black page slider. How does one change the color of the page slider?
 

kami

Lifer
Oct 9, 1999
17,627
5
81
Put something like this in the <head> or in your stylesheet:

<style>

BODY {
scrollbar-face-color: #6699cc;
scrollbar-highlight-color: #6699cc;
scrollbar-shadow-color: #6699cc;
scrollbar-3dlight-color: #6699cc;
scrollbar-arrow-color: #FFFFFF;
scrollbar-track-color: #336699;
scrollbar-darkshadow-color: #6699cc
}


</style>

and change the colors to whatever you want
 

GTaudiophile

Lifer
Oct 24, 2000
29,767
33
81
Can I put the same info in the <head></head> section? This may sound dumb, but I've never heard of/used a stylesheet. What is that exactly?
 

kami

Lifer
Oct 9, 1999
17,627
5
81
Paste exactly what I put in the <head> </head> section and it will work.
 

WillyF1uhm1

Senior member
Aug 10, 2001
407
0
0
Most (not all) of the style things that normally get put between the < style > tags, can be put into a textfile, with the extention .css (e.g. mysheet.css). The formatting of your webpages can be made easy this way, (i.e. to put most of it into a textfile), especially if you have a lot of pages.
So if you for example have to change the backgroundcolor of all your pages, by changing the style section, you just change your stylesheet, instead of changing all your pages one by one.

e.g.: open notepad and put the following into it:

BODY {
background-color : #BBDDFF;
border-color : #BBDDFF;
color : #001088;
}


Save it with the name : mysheet.css (or whatever name, as long as the extention is .css) in the same folder where you have your webpages.

In your webpages put the following in the HEAD section (between the <head> </head> tags)

<link rel="STYLESHEET" type="text/css" href="mysheet.css">

Try it and fiddle around a bit with the background-color and see how it affects all the pages that use the stylesheet.
 

RSI

Diamond Member
May 22, 2000
7,281
1
0
So this means that the scrollbar trick will only work using IE 5.5 and up?
 

RSI

Diamond Member
May 22, 2000
7,281
1
0
Are you absolutely sure? That's really weird. I thought I saw a site like that from my P83 which runs IE 5. I could be imagining things though.
 

joohang

Lifer
Oct 22, 2000
12,340
1
0
I'm absolutely positive. :)

You're talking to a man who followed DHTML since its birth. :p
 

GTaudiophile

Lifer
Oct 24, 2000
29,767
33
81
Thanks for the info. I added the "cool" scroll bar to two pages on my site (the only two that need scrolling).