I made this site and i can't figure out how to center my page without affecting my contents? I want my page to be always in center everytime user resize their browser.
right now the way i centered it is just: margin-left:x%;
Any code recommendations displaying the same output.
I tried both of your code and it works(tnx). [but i still have an annoying problem]The reason why i'm having a problem centering my page is because i'm using an absolute positioning to my footer graphic.
This css works in IE:
body { font-family:Georgia, "Times New Roman", Times, serif; font-size:12px; color:#649600; width:846px; text-align:center; /*text-align:center;*/
I suggest going with nick's method. It's cleaner and it keeps the div numbers to a minimum.
I'm typing form school now and I can't look into your source just yet. But my opinion is that you should scrap your absolute positioning for your footer. If you want that effect for the leaves (?) to cover the bottom of your content area you can apply a negative margin to it's containing div and get the same effect but more flexible than absolute pos.