menu drop down by Deluxe-Menu.com

DHTML Faq » How to keep my javascript menu slide in the centre of the page like <centre></centre>

How to keep my javascript menu slide in the centre of the page like <centre></centre>

Filed under: Recent Posts — Tags: — admin @ June 13, 2009 at 9:45 pm

Q:

Hi, I am testing your menu system for my company and would like
to know how to keep the menu in the centre of the page like
<centre></centre>. I know how to do it without a javascript menu slide but
cannot work out how to do this with it floating.

A:

When you use floatable menu you can’t use relative javascript menu slide position.
So, if you use
var absolutePos = 0;
and to center the menu you use <p> or <div> with the center alignment your menu won’t float.
To center your floatable menu you should set absolute coordinates.

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment