Re: Centering divs in firefox and scrollbar issue



Once upon a time *Spondishy* wrote:

> Hi HTML is
>
> <div class="outer">
> <div class="centerDiv">
> <div class="inner">
> Content
> </div>
> </div>
> </div>
>
> In answer to your questions.
>
> 1) If I understand you correctly, you would prefer to have the most
> right
> 24 pixels of your page invisible, as in covered by the scrollbar?
> I hope that's not what you want.
>
> Not at all. The behaviour of IE is that the scrollbar is always
> visible, but isn't in Firefox and that is why the center div sometimes
> shifts to the left. I was just wondering if there was a way around
> this.

The behaviour of IE is wrong. The reason I say so, is that IE seams to
thinks the browser is part of the website the user is on. Therefore
the web authors is allowed to mess with IE, e.g. changing the look of
the scrollbar. So the scrollbar is visible even when it's not needed.

But as I hope even you understand, the scrollbar is part of the
browser and the browser is the users, not the web authors. So other
browsers show the scrollbar if it's needed, and never let the author
change the look of it.

But the centered content is always centered on a webpage, it's just
that the center change if the page is long enough to need the
scrollbar. As the author you can't do anything about it, and should
not since the browser is the users who visit your site, not yours and
not a part of your site. :)

--
/Arne
-- *Joke of the day* ----------------------------------------
Tech Support: What anti-virus program do you use?
Customer: Netscape.
Tech Support: That's not an anti-virus program.
Customer: Oh, sorry...Internet Explorer.
-------------------------------------------------------------
.



Relevant Pages

  • Re: Unnecessary scrollbars
    ... scrollbars should appear, where they are big, scrollbar should appear ... the side of the document in the Hebrew version, ... If you are bringing this up, is it because you believe that such has some relationship to the other layout issues and long, complex CSS code you brought so far. ... Identify the browser and browser versions which show what you believe to be problems. ...
    (comp.infosystems.www.authoring.html)
  • Re: Mozilla/Opera vertical scrollbars
    ... Even if forced to display the ... What browser version do you have? ... What extension and theme do you use? ... Does IE really show a scrollable scrollbar, ...
    (alt.html)
  • Re: border on 100% height body creates scroll
    ... Browser is IE 7 - using XHTML 1.0. ... of 100% and then I want to put a border around the whole viewport. ... block but not the 100% sized viewport (and thus the scrollbar). ... When you add borders to an element, the content part of the element does ...
    (comp.infosystems.www.authoring.stylesheets)
  • Re: Links to Pages within Frames
    ... >> It's all very well the browser having a certain function, ... > key that does it, they've still got a scrollbar, surely? ... mouse/touchpad) to return to the nav bar, ... it beats those bus doors that are labelled boldly "THIS IS ...
    (uk.net.web.authoring)
  • Re: Fastest way to get table scheme?
    ... The other part of the problem is that it's not just *one* query ... I have a form with a dbgrid. ... by the customer through a VPN tunnel with only 64 kilobits/second. ... Everytime the vertical scrollbar is moved (or if the user presses ...
    (borland.public.delphi.database.ado)