View Full Version : Help:Web page not centered in display.


Ken Plotin
October 8th, 2008, 10:49 AM
When trying to create a simple web page in Front Page, it displays off center (to the left side of the screen).
How can I make sure it displays centered or stretches to fill the screen on higher rez monitors? I'm choosing "absolute" when formatting the position of various items on the page.
I would sure appreciate any help on this.
TIA,
Ken

Wes Coughlin
October 19th, 2008, 08:55 PM
I'm not exactly sure how your page is setup, but usually to center a page you use margins in CSS.

I would have to take a look at your source code, but your usually add the following CSS code to your container or wrapper element.

margin: 0 auto;

Ken Plotin
October 20th, 2008, 09:41 AM
Thanks Wes,
I used regular html in Front Page. It shows ok on my 1024x768 monitor, but when viewed on a higher res display, appears shifted to the left side. I'll try converting it to a css format in Coffee Cup and then add the tag you suggested.
Thanks again for your help.
Ken

Wes Coughlin
October 20th, 2008, 02:35 PM
well, you can always add the css in an inline format.

So lets just say our outermost div or table is named container. You would put something like this.

<div id="container" style="margin:0 auto">

Everthing else in my webpage

</div> <--end of webpage