| Welcome to WebmasterWorld Guest from 22.214.171.124 |
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
|Subscribe and Support WebmasterWorld|
|center all body content|
center several divs on resolution change
| 11:18 pm on Jan 3, 2003 (gmt 0)|
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)|
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
All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
© Webmaster World 1996-2014 all rights reserved