View Full Version : sidebar ends up in middle of page in IE, when horizontal scroll comes in to play
In Firefox, the left sidebar still renders on the left of the page, like it should and does for every other page (even in IE).
But in lovely IE 6 (haven't tried others), the left sidebar ends up in the middle of the page. My thought is since I'm using a -100% margin-left and since the content overflows the page and causes horizontal scrolling, IE subtracts the page width from the ends that has been extended which is why it ends up in the middle of the page.
How can I get IE to force it back to the left? In essence, ignore the scrolling?
I tested 18 browsers in 3 OSs and only IE5.5 and IE6 were broken. Both on Windows.
FYI, I used http://browsershots.org/
It appears to not be browser related, since in Firefox, when I shrink the browser window small enough (roughly lower than 900px wide) the left sidebar starts moving towards the center of the page. This is only a minor concern, since most users are using resolutions larger than this, but it more often than not occurs with software taking browser thumbnails of the site:
That orange/peach block in the middle should actually be off to the left, where the white space is. The more you shrink the window horizontally, the further to the right the bar moves, even moving off to the left of the page.
Everything works fine when the window is large enough.
Anyone have any ideas?
09-25-2008, 02:55 AM
A few things to try, either one by one or both at once:
1 - Try moving the HTML of the sidebar up above the stats table. I know sometimes things read left to right, so with the sidebar being below the table, it may be trying to move to the right of the table.
2 - I don't see a float tag for the sidebar, try floating the entire sidebar to the left.
09-25-2008, 11:20 AM
Check http://bonrouge.com/2c-hf-fluid.php to see how to apply floats and margins to make a good 2-column layout.
I did have the sidebar floating. I think the problem was the negative margin I was using to play it on the left. So I changed it to absolute position, since I always want it on the left and can easily calculate that position (zero!), it makes sense. Seems to work and it doesn't move around.
Thanks to both of you for trying to help.
09-26-2008, 06:13 AM
Glad you got yours working! Now if only I can get mine to work! :p
Powered by vBulletin® Version 4.2.2 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.