PDA

View Full Version : Alignment Problem



HabbDance
29-10-2008, 11:22 PM
Well, this is a tad hard to explain, but I'll try my best.

I'm coding this layout, and when the content is not to far down it looks fine.
But, when it is far enough down (when it needs to use the scroll bar) sections of it move over about 5 pixels.

Help? Cheers.

Britz
29-10-2008, 11:24 PM
Just a guess, but it could be to do with how the layout was sliced.

Not too sure, could you post a preview?

iUnknown
29-10-2008, 11:25 PM
Try in internet explorer. Doesn't move over? That's because firefox moves the layout over when a scroll bar is needed. Impossible to stop.

I think that may be what you're talking about? Puzzled me for a long time when I was coding a layout once. :)

HabbDance
29-10-2008, 11:30 PM
Just a guess, but it could be to do with how the layout was sliced.

Not too sure, could you post a preview?
http://jewbear.net/img/1225323050276.png


Try in internet explorer. Doesn't move over? That's because firefox moves the layout over when a scroll bar is needed. Impossible to stop.

I think that may be what you're talking about? Puzzled me for a long time when I was coding a layout once. :)
That might be the case, but I don't know yet because it is not compatible with IE yet.
+rep if you're right though ;)

iUnknown
30-10-2008, 07:45 PM
Was I right?

Meti
30-10-2008, 07:50 PM
The error I can see on the image is that the part under the banner, are a bit to the right.
What you could do is adding a container, with all the DIVs inside.

Try that, and tell me if it works :D

L?KE
30-10-2008, 07:58 PM
Yeah try metis way. I religiously use a container and never had this problem - not to say that is 100% the solution.

wsg14
02-11-2008, 02:26 PM
Take all the content divs and put them into a container, then on the container css add: margin: 15px auto;

L?KE
02-11-2008, 02:29 PM
Yeah, which meti previously said.

And for it to work in IE I think you need to give body "text-align: center;".

Iszak
02-11-2008, 04:00 PM
L?KE, no you don't have to give the body text-align: center for Internet Explorer, if all the content is in a container / wrap which has a fixed width and margin 0 auto, it will align in the center.

Want to hide these adverts? Register an account for free!