Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > quit scroll body in html 4.01

Reply
Thread Tools

quit scroll body in html 4.01

 
 
Alejandro Vidal
Guest
Posts: n/a
 
      11-19-2004
Hi, I'm new in this forum. I'm from spain, so, sorry for my english. My
problem is this:

I'm trying quit the scroll body in my pages, for example for full flash
pages.

I dont want to use frames pages with noscroll.

In some pages I used:

<body scroll="no">

this works in IE, but i think than it is not starndard and not recognised by
other browsers.

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.

IS <body style="overflow:hidden"> out of html 4.01 rules???

Exists other way to quit the body scroll????

Thank you


Alex


 
Reply With Quote
 
 
 
 
SpaceGirl
Guest
Posts: n/a
 
      11-19-2004
Alejandro Vidal wrote:
> Hi, I'm new in this forum. I'm from spain, so, sorry for my english. My
> problem is this:
>
> I'm trying quit the scroll body in my pages, for example for full flash
> pages.
>
> I dont want to use frames pages with noscroll.
>
> In some pages I used:
>
> <body scroll="no">
>
> this works in IE, but i think than it is not starndard and not recognised by
> other browsers.
>
> 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.
>
> IS <body style="overflow:hidden"> out of html 4.01 rules???
>
> Exists other way to quit the body scroll????
>
> Thank you
>
>
> Alex
>
>


You cannot prevent (stop) scrolling in the browser. You can only control
scrolling in frames, iframes and divs (layers).

--


x theSpaceGirl (miranda)

# lead designer @ http://www.dhnewmedia.com #
# remove NO SPAM to email, or use form on website #
 
Reply With Quote
 
 
 
 
Steve Pugh
Guest
Posts: n/a
 
      11-19-2004
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/
 
Reply With Quote
 
SpaceGirl
Guest
Posts: n/a
 
      11-19-2004
Steve Pugh wrote:
> 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
>
>


You're right. For some reason I didn't think that worked in IE. I just
tried it. Oops

--


x theSpaceGirl (miranda)

# lead designer @ http://www.dhnewmedia.com #
# remove NO SPAM to email, or use form on website #
 
Reply With Quote
 
DU
Guest
Posts: n/a
 
      11-19-2004
Steve Pugh wrote:
> 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?


Really. But more should have been explained. With an user stylesheet,
one can force the rendering of scrollbars when content overflows current
window dimensions with

html {overflow: auto !important;}
body {overflow: visible !important;}

I remember answering a question (can't recall if that was in this
newsgroup or in comp.lang.javascript) on this and verified this
carefully with MSIE 6 SP1a at the time.

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
>
>


DU
--
The site said to use Internet Explorer 5 or better... so I switched to
Mozilla 1.7.3
 
Reply With Quote
 
Alejandro Vidal
Guest
Posts: n/a
 
      11-19-2004
I tried:

html {
overflow:hidden;
}

And it works, it is just I'm looking for.

Thanks. I didn't find documentation about this.

Alex

"Steve Pugh" <> escribió en el mensaje
newspshpq96zq06el5p@stevepughlaptop...
> 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/



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Enable Scroll up and scroll down in CR-report Sathiamoorthy ASP .Net 1 11-28-2006 11:42 PM
Listbox disabled - cant scroll in IE - can scroll in Firefox =?Utf-8?B?Ui5OaWprYW1w?= ASP .Net 0 11-22-2006 03:46 PM
Using a div with scroll bars - can we get the scroll bars on the left instead of the right side? UJ ASP .Net 1 11-01-2006 09:32 PM
change the scroll speed of a scroll pane? Kevin Java 1 02-05-2005 09:42 AM
prevent mouse scroll to scroll in a dropdownlist nicholas ASP .Net 0 12-07-2004 11:26 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57