Centering Pages to View on Internet Explorer

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I usually don't use Frontpage to build websites since Dreamweaver is so much
easier, however for this current site I am building i have to use Frontpage.

My question is how do i center each page, so it will be centered in Internet
Explorer, instead of Left Aligned? I have tried searching the Frontpage help
and it was useless.

Please Help! ASAP!
 
Search the forum with "center" or "centre" in the subject. It's one of the
most frequently asked questions - you're sure to find plenty of hits.
 
That didn't help me much considering i have searched and searched for an
answer. could you please give me a step by step answer where i dont have to
search? thanks for all your help!
 
Gee -

It depends on whether you are using absolute positioning on the page, as to
which method might be best, but in either event, this will work -

Change this -

</head>

to this -

<style type="text/css">
<!--
body { text-align:center; }
#wrapper { text-align:left; width:760px; margin:0 auto;position:relative; }
/* 760px will display on an 800px screen maximized browser window without */
/* horizontal scrollbars. */
-->
</style>
</head>

change this -

<body ...>

to this -

<body ...>
<div id="wrapper">

and this -

</body>

to this -

<!-- /wrapper -->
</div>
</body>

and see if that helps.
 
Back
Top