Apply Scrollbar Colors to Document Only, Not Any Element InsideDocument

B

Beauregard T. Shagnasty

vunet said:
How can I use CSS to tell to apply colored scrollbars to the page
only, not any element inside of the page such as div, iframe, etc.?

Don't mess with my browser. You can have access to the content in the
viewport, but the browser is mine.
 
V

vunet

You don't. No other browser will even let you style them in the first place.

What I meant is applying scrollbar style to html, body but not any
other element such as div in IE (IE ONLY, of course)

html,body {
scrollbar-base-color: #9999cc;
}
div {
scrollbar-base-color: ;
}

But this did not work... You got my idea, didn't you?
Thanks.
 
J

Jonathan N. Little

What I meant is applying scrollbar style to html, body but not any
other element such as div in IE (IE ONLY, of course)

html,body {
scrollbar-base-color: #9999cc;
}
div {
scrollbar-base-color: ;
}

But this did not work... You got my idea, didn't you?

Got it, really. Scrollbars are considered part of the browser chrome,
stick to web standard and do yourself a favor. If you are looking for
constancy in MS you are in a world of hurt, only takes a quick scan of
the NG to see the evidence. Avoid proprietary properties

http://www.w3.org/TR/CSS21/propidx.html

and save yourself some grief.
 
N

Neredbojias

Well bust mah britches and call me cheeky, on Tue, 15 Jan 2008 16:43:34
GMT vunet scribed:
IE6 has a bug: when I drag some div element which contains colored
scrollbars, it crashes. I found an article describing this:

http://www.activewidgets.com/javascript.forum.18969.1/ie-6-crashes-with
-aw.html

How can I use CSS to tell to apply colored scrollbars to the page
only, not any element inside of the page such as div, iframe, etc.?

As Jonathan implied, it's a non-standard proprietary thing so other
elements will probably "inherit" the attribute no matter what you do.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,051
Latest member
CarleyMcCr

Latest Threads

Top