Centering Layers on a page?

F

farmdog

With the help of this forum and a post from one of the MVP's, I've used
layers to create a horizontal drop down menu for my site. However, I've used
tables to center my content on the page. When I preview the site the menu is
xx number of pixels from the left. The display will undoubtedly change with
ones display settings. Is there some way to keep the menu/layers and
content/table centered on the page?
 
M

Murray

Soitenly.

Change this -

</head>

to this -

<style type="text/css">
<!--
body { text-align:center; color:#CCC; }
#wrapper { text-align:left; width:720px; margin:0 auto;position:relative; }
-->
</style>
</head>

change this -

<body ...>

to this -

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

and this -

</body>

to this -

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

and see if that helps.
 
F

farmdog

Murray,

That worked great! I just had to change the text color and edit my cell
size a bit.

Thanks!
 

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