The following is valid against the w3.org validator service:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="us">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-16">
<meta http-equiv="Content-Style-Type" content="text/css">
<title>Test</title>
</head>
<body style="overflow:hidden">
<div>
...A LOT OF TEXT HERE...
</div>
</body>
</html>
MS-IE6 ignores the "overflow:hidden" style property on the body element.
(It does so also when running in quirks mode).
Thanx,
Adrian.
It probably isn't the only browser to do so. The overflow property is
meaningless without dimensions - there's no concept of "when it reaches the
bottom" because the bottom is being defined as "after all the content".
What other browsers behave the same?
> The overflow property is
> meaningless without dimensions - there's no concept of "when it reaches the
> bottom" because the bottom is being defined as "after all the content".
>
>
MS-IE6 also support the "scroll" attribute on the <body> element.
So, when coding something like <body scroll="no"> it works.
But the "scroll" attribute is non-standard; the standard (as CSS2) is
style="overflow:hidden" and it works in mozilla.org based browsers.
Opera 7, for a start...
> > The overflow property is
> > meaningless without dimensions - there's no concept of "when it reaches
the
> > bottom" because the bottom is being defined as "after all the content".
>
> MS-IE6 also support the "scroll" attribute on the <body> element.
> So, when coding something like <body scroll="no"> it works.
> But the "scroll" attribute is non-standard; the standard (as CSS2) is
> style="overflow:hidden" and it works in mozilla.org based browsers.
And? To go back to waht I was saying, did you try dimnesioning the body? --
it does work that way.