Current location: Hot Scripts Forums » General Web Coding » CSS » scrollbar properties in css


scrollbar properties in css

Reply
  #1 (permalink)  
Old 03-30-05, 08:00 AM
pagetta pagetta is offline
Newbie Coder
 
Join Date: Nov 2004
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
scrollbar properties in css

I have the following in the body part of my css file:

body
{ font-family: verdana, arial, helvetica, sans-serif;
font-size: 10px;
color: #999999;
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
scrollbar-base-color: #364580;
scrollbar-arrow-color: #364580;
scrollbar-highlight-color: #FFFFFF;
scrollbar-face-color: #9DBEDF;
scrollbar-shadow-color: #364580;
scrollbar-3dlight-color: #364580;
scrollbar-track-color: #B2B2B2;
scrollbar-darkshadow-color: #364580;
}

however w3c is saying it does not validate as valid css - does anyone know why, or how to overcome this? Its not vital we have it it's just a nice touch I think and would be interested to know why it doesn't validate. Thank you
Reply With Quote
  #2 (permalink)  
Old 03-30-05, 08:24 AM
kjmatthews kjmatthews is offline
Wannabe Coder
 
Join Date: Jun 2004
Location: Boston, MA
Posts: 134
Thanks: 0
Thanked 0 Times in 0 Posts
This does not validate against the WC3 because the scrollbar properties you are styling are proprietary Microsoft attributes. They are not standards so they don't validate against the standards checker, and will only appear in Internet Explorer.

This is non-critical, but you can also set the margin properties in one declaration using any of the following formats:
Code:
margin: top right left bottom;
(e.g. margin: 10px 12px 4px 3px;)

margin: top left/right bottom;
(e.g. margin:10px 4px 10px;)

margin: top/bottom left/right;
(e.g. margin: 10px 4px;)

margin: all;
(e.g. margin: 0px;)
Since all your margins are set to the same value, the last format would work best for you.
Reply With Quote
  #3 (permalink)  
Old 04-01-05, 04:36 AM
alfgaard alfgaard is offline
Newbie Coder
 
Join Date: Apr 2005
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks, kjmatthews. I had the similar problem and was looking for a solution too.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Adapting CSS for different platforms pagetta CSS 1 01-12-05 07:13 AM
Properties Window david.willis JavaScript 2 09-01-04 03:39 AM
scrollbar on the left side on a modal window davidklonski HTML/XHTML/XML 0 06-23-04 04:55 PM
how have immitate the scrollbar? davidklonski JavaScript 1 05-19-04 04:40 PM
css generator frank1002 Script Requests 0 05-07-04 03:29 PM


All times are GMT -5. The time now is 01:35 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.