center drop down menu

N

nicko_84

I want to center my drop down menu but it doesn't align with my hyperlinks.

I am using layered tables for the drop down menu and they are positioned
absolutely so when i hover over my hyperlink it unhides the layered table.

All of this works when i have my page aligned to the left because my layers
that are positioned absolutely stay the same amout of distance for the left
and top. But when i center my page, the layers stay in the same position but
my hyperlinks move to the center.

How do i get my whole page to be centered and my layered tables to line up
with my hyperlinks?
 
M

Murray

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.
 
B

Bob

Glad to see your back Murray
I hope the trip was a nice one..

bob
| 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
| ============
|
| | >I want to center my drop down menu but it doesn't align with my
hyperlinks.
| >
| > I am using layered tables for the drop down menu and they are positioned
| > absolutely so when i hover over my hyperlink it unhides the layered
table.
| >
| > All of this works when i have my page aligned to the left because my
| > layers
| > that are positioned absolutely stay the same amout of distance for the
| > left
| > and top. But when i center my page, the layers stay in the same position
| > but
| > my hyperlinks move to the center.
| >
| > How do i get my whole page to be centered and my layered tables to line
up
| > with my hyperlinks?
| >
|
|
 
M

Murray

Yes - a much needed visit with my kids. Thanks!

Hope you had a great holiday, too!
 
B

Bob

Beyond belief... The best ever!

bob
| Yes - a much needed visit with my kids. Thanks!
|
| Hope you had a great holiday, too!
|
| --
| Murray
| ============
|
| | > Glad to see your back Murray
| > I hope the trip was a nice one..
| >
| > bob
| > | > | 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
| > | ============
| > |
| > | | > | >I want to center my drop down menu but it doesn't align with my
| > hyperlinks.
| > | >
| > | > I am using layered tables for the drop down menu and they are
| > positioned
| > | > absolutely so when i hover over my hyperlink it unhides the layered
| > table.
| > | >
| > | > All of this works when i have my page aligned to the left because my
| > | > layers
| > | > that are positioned absolutely stay the same amout of distance for
the
| > | > left
| > | > and top. But when i center my page, the layers stay in the same
| > position
| > | > but
| > | > my hyperlinks move to the center.
| > | >
| > | > How do i get my whole page to be centered and my layered tables to
| > line
| > up
| > | > with my hyperlinks?
| > | >
| > |
| > |
| >
| >
|
|
 
N

nicko_84

That code just changed my page from left aligned to right aligned. But the
positioning is aligned to the links properly. So i now can have a left
aligned page that works or a right aligned page the works.

How do i get it to the center?
 
M

Murray

If you did it right you would get a page that centers. Please post a link
to your page, and I'll tell you what is wrong....
 
N

nicko_84

i changed all my code that said:

align="left"
or
align="right"

and made them all say:

align="center"

and it worked. thanks heaps.
 
M

Murray

Hmmm....

--
Murray
============

nicko_84 said:
i changed all my code that said:

align="left"
or
align="right"

and made them all say:

align="center"

and it worked. thanks heaps.
 

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