Contact Us Forum Rules Search Archive
WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-21-2004, 06:55 PM
WebProWorld Pro
 

Join Date: Jan 2004
Location: Milton Keynes, UK
Posts: 117
DarrenPWS RepRank 0
Default Color Scrollbar

Hi everyone,
I am intending to apply a coloured scroll-bar to a website I am working on for a client.

Instead of adding the code in the <head> section, I want to put it into a CSS so that I don't have to go through the 25 pages I have already created applying the code, and then go through them all again if my client wants a different colour etc. etc.

The problem I am having is when I put the code into my style sheet, it has no affect what so ever on the webpage. I am viewing it in IE6 - so it's not a browser problem. It worked the other day too - I am sooo frustrated and confused, please help !!

I use the following code :


body {code in here}


I am 100% sure that the code is correct because it works in the <head> section, so it must be something I haven't done correctly using the css ?? ?? ??

Thanks a lot in advance,
Darren Darkins
Reply With Quote
  #2 (permalink)  
Old 01-21-2004, 07:04 PM
httpman's Avatar
WebProWorld Pro
 

Join Date: Aug 2003
Location: France
Posts: 196
httpman RepRank 0
Default

Hello Darren

The CSS is the right way !!
Here is an extract of the code I use on my own website (and on most of my clients websites):

body {
scrollbar-arrow-color:#3791BF;
scrollbar-track-color:#E3EEF9;
scrollbar-3dlight-color:#D1D7DC;
scrollbar-darkshadow-color:#98AAB1;
scrollbar-base-color:#000000;
scrollbar-highlight-color:#8AB5DA;
scrollbar-face-color:#C5E6F5;
scrollbar-shadow-color:#8AB5DA;
}

This works fine on any version of IE from 5.0. To use it, you must have into your <head> section the following line :

<link href="your_css_relative_address.css" rel="stylesheet" type="text/css">

It works ! So if it still doesn't work on your own site please give me the URL and I will check.

JP
__________________
www.net-createurs.com [ french only website sorry ! ]
Reply With Quote
  #3 (permalink)  
Old 01-21-2004, 07:47 PM
WebProWorld Pro
 

Join Date: Jan 2004
Location: Milton Keynes, UK
Posts: 117
DarrenPWS RepRank 0
Default nice one

Hi httpman,

Well, although I thought I was doing it right, something must have been wrong with my code, in copy&pasting your code, and modifying the colours to match the site I am doing, it now works!

Whatever you done, it was right and I have decided not to turn to drink...

Thanks,

DD
Reply With Quote
  #4 (permalink)  
Old 01-21-2004, 09:25 PM
httpman's Avatar
WebProWorld Pro
 

Join Date: Aug 2003
Location: France
Posts: 196
httpman RepRank 0
Default

Great, that's the magic with the www world.
Just add / change / replace a . or a , and it can maybe work, or maybe not. Great magic !

I personnally decided to continue drinking, but only beers and only during the day - during the night I work for my clients, and try to make nice things. Seems to work !

Checked at your www link at the bottom of your posts, did you build that site ? It's really good. That "close" link on the upper right : wonderfull. I keep the idea for later.

Jean-Pierre
__________________
www.net-createurs.com [ french only website sorry ! ]
Reply With Quote
  #5 (permalink)  
Old 01-22-2004, 03:48 AM
WebProWorld Member
 

Join Date: Sep 2003
Location: Honolulu, Hawaii
Posts: 45
starrwriter RepRank 0
Default

Two tips about using colored scrollbars:

(1) You must list the scrollbar elements in the correct order.

(2) The colored scrollbars won't appear in IE 6 if you use a DOCTYPE that demands strict WWW3 code compliance. I delete the DOCTYPE, which kicks IE 6 into "quirks" (non-compliant) mode and makes the colored scrollbars display.
Reply With Quote
  #6 (permalink)  
Old 01-23-2004, 09:47 AM
ranjan's Avatar
WebProWorld Pro
 

Join Date: Sep 2003
Location: CA
Posts: 174
ranjan RepRank 0
Default Change the CSS

Why delete the DOCTYPE and push your document into quirks mode? Change the CSS instead...

http://dreamlettes.net/extensions/scrollbars.htm

The scrollbars is the page above appear in IE altough the DOCTYPE is present because the scrollbar properties are specified on "html" rather than on "body"

Also using IE conditional statements the scrollbars CSS are hidden from other browsers and CSS Validator, so they validate the document

If you use dreamweaver you can get the extension

http://dreamlettes.net/extensions/#Scrollbars
__________________
ranjan | Macromedia Certified Dreamweaver MX Developer
http://www.dreamlettes.net - a dreamweaver resource
http://www.ranjan.ws - got blog?
http://www.total-impact.com - a web design community
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Tags: ,



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Search Engine Optimization by vBSEO 3.2.0