Welcome to WebmasterWorld Guest from

Forum Moderators: not2easy

Message Too Old, No Replies

center all body content

center several divs on resolution change



11:18 pm on Jan 3, 2003 (gmt 0)

10+ Year Member

I am going out of my mind with this one. I went all relative and liquid design so far but this one has got to be fixed size.

So I've got 5 divs, each under the other one, all 650px wide. What I aim to do is when resizing and/or changing rezolution all divs be centered (the divs not the content inside them).

I have tried small margin-left percentages 10%-15% but they look either good on 800x600 and uncentered on 1024x768 or the other way around.

Please, can anyone tell me how to solve this problem using only css? (this is css only layout).

Thanks and God bless who he has the answer ;)


12:29 am on Jan 4, 2003 (gmt 0)

10+ Year Member

Ok found the answer myself.

Method no1: [bluerobot.com...] - din't work that well for me cause you can't use position:absolute with that so no chosing which div to go first in source code.

Method no2: [bluerobot.com...] - works like a charm on Opera, NN 6.x, IE6. Don't know how it looks on IE5


Featured Threads

Hot Threads This Week

Hot Threads This Month