PC Review


Reply
Thread Tools Rate Thread

Centering Layers on a page?

 
 
=?Utf-8?B?ZmFybWRvZw==?=
Guest
Posts: n/a
 
      16th May 2006
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?
 
Reply With Quote
 
 
 
 
Murray
Guest
Posts: n/a
 
      16th May 2006
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.


--
Murray
--------------
MVP FrontPage


"farmdog" <(E-Mail Removed)> wrote in message
news:BBC61A5F-469B-4199-A0BF-(E-Mail Removed)...
> 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?



 
Reply With Quote
 
=?Utf-8?B?ZmFybWRvZw==?=
Guest
Posts: n/a
 
      19th May 2006
Murray,

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

Thanks!

"Murray" wrote:

> 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.
>
>
> --
> Murray
> --------------
> MVP FrontPage
>
>
> "farmdog" <(E-Mail Removed)> wrote in message
> news:BBC61A5F-469B-4199-A0BF-(E-Mail Removed)...
> > 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?

>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
centering my web page maureen Microsoft Frontpage 1 18th May 2009 11:28 AM
Vertical centering in layers Helpful person Microsoft Frontpage 10 4th Apr 2006 04:51 PM
Centering page JT Microsoft Frontpage 2 10th Oct 2005 03:13 PM
Centering the whole web page Stephen Microsoft Frontpage 15 29th Dec 2004 08:38 AM
Page Centering Tru Dixon Microsoft Frontpage 0 7th Jul 2003 05:23 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:13 PM.