centering my webpage

G

Guest

When viewing my website on a browser, all of the pages are left justified.
How do I make it so that all the pages are viewed centered just like every
other page in the world?

PS. When I designed, I used layers.
 
M

Murray

PS. When I designed, I used layers.

The solution may be worse for you than the symptoms.

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. And by the way, to see why your approach is a very
poor one, go here and read about what you have married with a layer-only
site -

http://www.great-web-sights.com/g_layerlaws.asp. (my police are standing
by)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top