How do I centre my webpage?

Hello everyone,

I have noticed that on some computer screens (with a smaller set resolution - am I explaining this correctly? - I mean everything appears smaller), my webpages appear smaller and as such, to the left of the screen. I have noticed with professional sites, the page usually appears in the middle of the screen.

My question is how do I change my page so it will appear in the middle of the screen, when being viewed through a set resolution PC which makes the page seem smaller? I have tried messing around with autostrech and spacer images,  but I clearly have no idea what I am doing. I have a feeling that it's not too difficult, but that's no comfort as I don't know what to do.

Many thanks in advance,

AdamTrying to learn phpAsked:
Who is Participating?
Saqib KhanSenior DeveloperCommented:
Right After the Body Tag Add <Div Align="Center">
And Right before the </Body> Tag Close it </Div>
AdamTrying to learn phpAuthor Commented:

Many thanks Adikhan.

Have a great day.
Saqib KhanSenior DeveloperCommented:
My Pleasure:)
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.