HighDots Forums  

Centered layout shifts

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss Centered layout shifts in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
larzeb2000@yahoo.com
 
Posts: n/a

Default Centered layout shifts - 06-13-2006 , 11:57 AM






I have constructed a css stylesheet which has a centered layout. The
wrapper div is defined as 1000px. It contains a header div for the
entire wrapper width, and a left sidebar div and a content div on the
right. Everything appears as I would expect.

I have made a homepage with nothing in the content area, and another
page with the content filled so that the vertical scroll bar is
present.

When I'm in IE6 and go between the two pages, there is no apparent
shift of the wrapper and its contents. However, in Firefox and Opera,
the page with content shifts the entire wrapper over to the left of the
position it occupies when on the home page. It shifts by the width of
the vertical scroll bar. This doesn't look as "stable" as it does in
IE.

Is there any way to prevent this "shift" from occurring in FF and
Opera?
TIA Larzeb

CSS Stylesheet fragment:
#wrapper {
width: 1000px;
margin: 0 auto;
text-align: left;
position: relative;
}

#header {
width: 100%;
margin: 20px 0;
}
#sidebar {
width: 30%;
float: left;
}
#content {
width: 70%;
float: left;
}


Reply With Quote
  #2  
Old   
Beauregard T. Shagnasty
 
Posts: n/a

Default Re: Centered layout shifts - 06-13-2006 , 12:23 PM






larzeb2000 (AT) yahoo (DOT) com wrote:

Quote:
I have constructed a css stylesheet which has a centered layout. The
wrapper div is defined as 1000px. It contains a header div for the
entire wrapper width, and a left sidebar div and a content div on the
right. Everything appears as I would expect.
1000px? That won't fit in my browser window. Please see:
http://allmyfaqs.net/faq.pl?AnySizeDesign

Quote:
I have made a homepage with nothing in the content area, and another
page with the content filled so that the vertical scroll bar is
present.

When I'm in IE6 and go between the two pages, there is no apparent
shift of the wrapper and its contents. However, in Firefox and Opera,
the page with content shifts the entire wrapper over to the left of
the position it occupies when on the home page. It shifts by the
width of the vertical scroll bar. This doesn't look as "stable" as it
does in IE.
Without the URL to your page, anything is a guess. Best guess, from your
CSS, is that the 70% plus the 30% plus margins and padding, and any
borders, adds up to more than 100%, and the real browsers adjust for
that. IE not included.

--
-bts
-Warning: I brake for lawn deer


Reply With Quote
  #3  
Old   
Jim Moe
 
Posts: n/a

Default Re: Centered layout shifts - 06-13-2006 , 01:37 PM



larzeb2000 (AT) yahoo (DOT) com wrote:
Quote:
When I'm in IE6 and go between the two pages, there is no apparent
shift of the wrapper and its contents. However, in Firefox and Opera,
the page with content shifts the entire wrapper over to the left of the
position it occupies when on the home page. It shifts by the width of
the vertical scroll bar. This doesn't look as "stable" as it does in
IE.

Is there any way to prevent this "shift" from occurring in FF and
Opera?

No.

--
jmm (hyphen) list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)


Reply With Quote
Reply




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.