On Sat, 20 May 2006 02:26:28 +0800, Design Groups  
<[EMAIL PROTECTED]> wrote:

> I have a #wrapper container that's 700px wide and centered with margin:0 
> auto.  I want a sidebar that is "position:fixed" and flush left and top 
> to the container - not the browser window.
> [snip]
> in Opera , it *literally* centers the #sidebar in the browser window.

Using Opera 8(.54), it's not "literally centered" - resize the window to  
see. It has an amusing repaint glitch too.

> Is this a bug?

Yes. Opera 9 displays your page just like Firefox.

> #wrapper {
>                 position:relative;
>                 width:700px;
>                 height:18em;
>                 margin:10px auto;
>                 border:1px solid #000;
>                 background-color:#EEE;
>                 color:#000;}
>
> #sidebar {
>                 width:100px;
>                 height:18em;
>                 background-color:#CCC;
>                 color:#FFF;
>                 position:fixed;
>                 margin:0 auto; /* this, for some reason, makes Firefox
> position it where I want to.  If I take it out, then the sidebar does
> the same thing Opera does.  If a leave it in, Opera centers the sidebar
> in the browser window, overlapping the #wrapper div*/}

My Firefox (1.5.0.3) did not need that margin. Removing that margin  
changed nothing in the display of my Firefox, Opera or IE.

Regards,
-- 
Andrew Gregory, <URL: mailto:[EMAIL PROTECTED] >
<URL: http://www.scss.com.au/family/andrew/ >
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to