On Fri, 19 Nov 2004 12:05:43 +0000, SpaceGirl
<> wrote:
> Alejandro Vidal wrote:
>> I'm trying quit the scroll body in my pages, for example for full flash
>> pages.
So you've removed all margins and padding with CSS and set the Flash movie
to have 100% height and width? And now you want to remove the greyed out
scrollbar?
>> now I'm trying with css:
>> <body style="overflow:hidden">
>> this works when I delete the string: <!DOCTYPE HTML PUBLIC
>> "-//W3C//DTD HTML
>> 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
>> from the html file, but I don't want to do this, because I want my
>> pages validates html 4.01 standard.
When you removed the doctype you triggered quirks mode.
With the doctype you trigger standards mode.
One of the differences is that in standards mode the page scrollbars are
attached to the html element, not to the body element.
>> IS <body style="overflow:hidden"> out of html 4.01 rules???
Yes. Under the HTML 4.01 <body style="rubbish"> is valid. The content of
the style attribute can be almost anything.
Under the CSS rules overflow: hidden; is valid.
>> Exists other way to quit the body scroll????
Add html {overflow: hidden;} to your style sheet.
> You cannot prevent (stop) scrolling in the browser. You can only control
> scrolling in frames, iframes and divs (layers).
Really? So you can't apply the overflow property to a paragraph or a
heading? I think you should test things a bit before making assertions.
Whilst there are some annoying limitations (IE not supporting overflow on
tbody is an obvious one) reality is a lot less restricted than you implied.
Steve
--
Using Opera's revolutionary e-mail client:
http://www.opera.com/m2/