DOCTYPE and scrollbar styling don’t seem to go together

  • gladden
  • Beginner
  • Beginner
  • gladden
  • Posts: 44

Post 3+ Months Ago

Hi all,

I came across this and don’t know how to explain it. I have some styling statements to set the color of my scrollbar.

Code: [ Select ]
body { position:relative; left:0px;border-style:double;
           BACKGROUND: url(localimages/bg.gif) #ddb
               repeat-y center top;
           MARGIN: 0px 30px;            
           scrollbar-darkshadow-color: #E3E3C6;
           scrollbar-shadow-color: #999900;
           scrollbar-3dlight-color: #E3E3C6;
           scrollbar-highlight-color: #EEEEDD;
           scrollbar-face-color: #EEEEDD;
           scrollbar-track-color: #EEEEDD;
           scrollbar-arrow-color: #999900;
}
  1. body { position:relative; left:0px;border-style:double;
  2.            BACKGROUND: url(localimages/bg.gif) #ddb
  3.                repeat-y center top;
  4.            MARGIN: 0px 30px;            
  5.            scrollbar-darkshadow-color: #E3E3C6;
  6.            scrollbar-shadow-color: #999900;
  7.            scrollbar-3dlight-color: #E3E3C6;
  8.            scrollbar-highlight-color: #EEEEDD;
  9.            scrollbar-face-color: #EEEEDD;
  10.            scrollbar-track-color: #EEEEDD;
  11.            scrollbar-arrow-color: #999900;
  12. }

But the only time the scrollbar styling shows is when I remove the DOCTYPE at the top of my page. :!: I've tried and confirmed this a few times. Has anyone else experienced this? The following is my DOCTYPE

Code: [ Select ]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • rtm223
  • Mastermind
  • Mastermind
  • User avatar
  • Posts: 1855
  • Loc: Uk

Post 3+ Months Ago

This has been asked twice in the last week or so, searching for "doctype scrollbar" gave me:

http://www.ozzu.com/website-design-forum/scrollbar-colour-changes-t27979.html&hi ... ar+doctype

http://www.ozzu.com/website-design-forum/changing-the-side-bar-t27362.html&hi ... ar+doctype

The scrollbar css doesn't work with a full doctype, use a reduced one.

Code: [ Select ]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" >
  • gladden
  • Beginner
  • Beginner
  • gladden
  • Posts: 44

Post 3+ Months Ago

Thank you so much rtm223.

I had looked for the topic of scrollbar styling just a couple of weeks ago and had not found anything in regard to doctype and scrollbar styling. It goes to show that even one week can make a difference. :lol:

Anyway, I found the answer in one of the links you provided. Thanks again. :D

Post Information

  • Total Posts in this topic: 3 posts
  • Users browsing this forum: No registered users and 87 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.