On 7/26/06, Don Miller <[EMAIL PROTECTED]> wrote:
> I have a problem with a div not giving me a scroll bar in NS7, Mozilla1, and
> Opera 9. Works great in IE5 and IE6 on Win98.
> Can someone point me to a GOOD article on using scroll bars in divs that
> works cross-browser. My research on Google indicates scroll bars are very
> iffy and very browser dependent.
>
> CODE:
> #content
> {
> background-color: #E1F0FF;
> position: relative;
> float: right;
> top: 15px;
> left: -20px;
> width: 450;
> height: 400;
> overflow-x: hidden;
> overflow-y: auto;
> white-space: wrap;
> border: 3px inset white
> }
Actually, scrollbars are pretty consistently supported. The issue is
that overflow-x and overflow-y are not valid CSS 2 properties, but are
IE extensions. If you look at the references for overflow-x and
overflow-y at MSDN[1][2] you'll see that they are proposed additions
to the spec, not parts of the spec. (By comparison, Microsoft
describes overflow as actually being part of the specification.)[3]
The only valid CSS 2 property dealing with scrollbars is overflow.[4]
Give that a shot in place of overflow-x and overflow-y and see how
that does for you.
HTH,
Michael
[1]
http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/properties/overflowx.asp
[2]
http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/properties/overflowy.asp
[3]
http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/properties/overflow.asp
[4] http://www.w3.org/TR/CSS21/visufx.html#overflow
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/