Question on HTML - Post ID 91713

User 1961146 Photo


Registered User
26 posts

Question? I have a the main page of a website pretty much almost finish, but when I test it on a browser everything is pushed to the left. The site is not nicely center.
User 103173 Photo


VP of Software Development
0 posts

Can you upload the page someplace so we can take a look at it?
Learn the essentials with these quick tips for Responsive Site Designer, Responsive Email Designer, Foundation Framer, and the new Bootstrap Builder. You'll be making awesome, code-free responsive websites and newsletters like a boss.
User 471275 Photo


Ambassador
1,130 posts

I you want a page centered then you can add the code at the beginning of the page in the body section <center> and at the end of the page </center>. If this does not work then please add a link to your website here.

Hope this helps :)

User 355448 Photo


Ambassador
3,144 posts

Another option is to use CSS, and set the body to have automatic left and right margins.

It would look something like this:

body {margin:0 auto;}

This sets top and bottom margin to be 0. but you can change that as well.
User 1961146 Photo


Registered User
26 posts

Thank you, I'm still getting familiar with hostgator, as soon I can figure things out with the c-panel I will add a link if the problems continues.

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.