How To Center a Web Page in the Browser Window
This page is horizontally centered on screens that are wider than 500 pixels.
Resize the browser window to see the effect.
This page is always centered on screens that are wider than 500px. On screens that are less than 500px wide, it will span the whole of the page.
Content inside this container is centered horizontally.
Content inside this container is centered horizontally.
Content inside this container is centered horizontally.
Content inside this container is centered horizontally.
Content inside this container is centered horizontally.
Content inside this container is centered horizontally.
Content inside this container is centered horizontally.
Content inside this container is centered horizontally.
Content inside this container is centered horizontally.