1 reply [Last post]
snipe_vgtu
Offline
newbie
Last seen: 16 years 34 weeks ago
Timezone: GMT-8
Joined: 2005-04-12
Posts: 4
Points: 0

Hi, there.
Need some help in CSS positioning =)
That's my first expirience with CSS. And I can tell you that it's quite hard =) Took me a lot of time to get what I got here: http://kazal.org/casaloca/

My question is:
How can I prevent content going out of screen size, when resizing the window?
I still want it (content) to be centered horizontally and vertically. Any help will be really apreciated...

web site here: http://kazal.org/casaloca/
CSS here: http://kazal.org/casaloca/css/mainpage.css

dbowne
Offline
Enthusiast
Washinton DC
Last seen: 18 years 28 weeks ago
Washinton DC
Joined: 2003-05-22
Posts: 53
Points: 0

fixed width centered content div with auto margins

If you set a fixed width to the content div and set left and right margins to auto you can control stop the content from recentering to the visual space at a certain width, however you cannot stop the user from continuing to re-size the browser window.

I have worked with something similar in the past. Here's and example: http://www.thebownes.com/dennis/playground/centeredDivLayout/

dbowne