center web page - Post ID 232212

User 1983808 Photo


Registered User
5 posts

I'm doing my first responsive design using "div's" instead of table but can't figure out how to center the web page on the screen. Can anyone help?

Here is the site in progress:
http://marketyouredge.com/Berta2014/index.php


Thanks,
User 1948478 Photo


Senior Advisor
1,850 posts

In your: stylesheets/default.css try changing this:

body {
width: 100%;
max-width: 960px;
margin-left:10px;
position: relative;
border: none;
}

to this:

body {
width: 100%;
max-width: 960px;
margin: 0 auto;
}

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.