homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / CSS
Forum Library, Charter, Moderators: not2easy

CSS Forum

center all body content
center several divs on resolution change

10+ Year Member

Msg#: 482 posted 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 ;)



10+ Year Member

Msg#: 482 posted 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

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / CSS
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved