Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Quick CSS question about scrollbar effects

Status
Not open for further replies.

jewel464g

Technical User
Jul 18, 2001
198
US
Recently I was informed that my site's scroll bar doesn't work in Netscape, personally I don't care, but this person asked me why it didn't and if there was a way to change the code so it would work in netscape. Now this made me think and suddenly I think I care :) Anyone got any answers? I've looked around on google but haven't found anything that works. I did see a paragraph that talked about Netscape not allowing people to change things like that.

Here's a link to the site.



and here is the simple code

<style TYPE=&quot;text/css&quot; MEDIA=screen
<!--
body {scrollbar-face-color: #0030A5 }
-->
</style

When faced with a decision, always ask, 'Which would be the most fun?'
 
I'm sure, if you cared enough, you could pull it off with dhtml. Have no real scrollbar, and use some slyly positioned divs with some draging code, and page position altering. But honestly, It's probably not worth the effeort.
 
I agree, probably not worth the effort. But yes, the scrollbar styling properties (there are a few of them; do a search for &quot;CSS&quot; on Microsoft's web site for a complete list) are IE-only and aren't even part of the CSS standards anywhere (and don't look to become part of CSS3 anytime soon either). Basically, you have to decide whether to design for standards or for bells and whistles that most users (if recent browser preference statistics are to be believed) can use anyway. I jumped on the IE bandwagon shortly after learning how much more flexible JavaScript event handling was in IE compared to Netscape.

I can't remember who, but someone once said that statistics were the third and greatest form of falsehood (although not in those exact words). The real problem with statistics is that 97.315% of them are fabrications.


JavaStripped
&quot;I did *not* escape. They gave me a day pass.&quot;
 
BTW: jewel464g: Cool site! Keep the scrollbar colors!
[afro2] looks way better than [afro], even with the shades.
But then, I've been told that I'm weird, so maybe I'll just let you make that decision for yourself... about the colors, not whether or not I'm weird. [3eyes]

JavaStripped
&quot;I did *not* escape. They gave me a day pass.&quot;
 
> I can't remember who, but someone once said that statistics were the third and greatest form of falsehood (although not in those exact words).

&quot;There are lies, damned lies and statistics&quot; - Benjamin Disraeli (later quoted by Mark Twain)

-- Chris Hunt
Extra Connections Ltd
 
Thanks everyone for your input. I think I'm back to the not caring stage again :) As long as it looks cool in one browser that's fine with me.

Jewel


When faced with a decision, always ask, 'Which would be the most fun?'
 
jewel464g,

How do you keep the scrollbar visible when the page does not overflow (i.e. your home page has the scrollbar without the slider)?

Game Over, Man!
 
JabbaTheNut, isn't the slider everpresent in IE? At least I have never seen it go away.

jewel464g , as for your question, I would say that if you want to do w3 standards compliant page, don't alter the scrollbar as it was stated before, those properties are not part of the standard. If not, you can alter the scrollbar and only IE users (the majority) will see them. And if people start asking you why it does not work, you just tell them it is a IE only thing.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top