You are here: Re: The scrollbar and Firefox. « HTML « IT news, forums, messages
Re: The scrollbar and Firefox.

Posted by Jonathan N. Little on 12/01/07 22:35

Defacta wrote:
> On 1 déc, 19:10, "Jonathan N. Little" <lws4...@centralva.net> wrote:
>> Adrienne Boswell wrote:
>>> Gazing into my crystal ball I observed Defacta
>>> <vincent.margue...@gmail.com> writing in news:e150f302-18a8-46ce-8bce-
>>> f2ec71388...@a35g2000prf.googlegroups.com:
>>>> Hi !
>>>> How can make the scrollbar be displayed on Firefox even if there is
>>>> not enough content to justify a scrollbar.
>>>> With IE, the scrollbar is displayed at all times, I would like Firefox
>>>> to do the same.
>>>> I am not talking about a frame or an iframe but about the main page.
>>>> Maybe there is an option to specify in the tag <body>
>>>> Thanks,
>>>> Vincent.
>>> That could be confusing for a visitor. If there is a scroll bar, the
>>> user might want to try to scroll for more content - and if there is
>>> none? Please don't mess with the UA.
>> Agree. Why would you want to replicate this stupid behavior of IE? But
>> is possible if you feel so compelled.
>>
>> body { overflow: scroll; }
>>
>> --
>> Take care,
>>
>> Jonathan
>> -------------------
>> LITTLE WORKS STUDIOhttp://www.LittleWorksStudio.com
>
> Yes it works fine with Firefox but now I have troubles with IE 6 which
> display some scrollbars inside the page,
> You can have a look here:
> http://boxfly.free.fr/test/test_scroll/
>
> Does anyone know why IE 6 display some scrollbars inside the page when
> I had "overflow: scroll;" to the style of the body ?

Well you do have a mish-mosh of XHTML and HTML, in valid markup.

http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fboxfly.free.fr%2Ftest%2Ftest_scroll%2F
[Invalid] Markup Validation of http://boxfly.free.fr/test/test_scroll/ -
W3C Markup Validator


So as browsers try to "digest" all this they can come to different
conclusions. First start with valid markup, fix the errors, then see if
you get cross browsers consistency.

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация