|
Is it possible to keep my floating javascript dropdown menus in the centre of the page like <centre></centre>
Return to Recent Questions
Q:
Hi, I am testing your javascript dropdown menus system for my company and would like
to know how to keep the javascript dropdown menus in the centre of the page like
<centre></centre>. I know how to do it without a floating javascript dropdown menus but
cannot work out how to do this when I use absolute position for the javascript dropdown menus.
A:
To center your floatable [menu] you should set absolute coordinates.
When you use floatable javascript dropdown menus you can't use relative position for the menu.
So, if you use
var absolutePos = 0;
var posX="10";
var posY="50%";
and to center the javascript dropdown menus you use <p> or <div> with the center alignment your [ke] won't float.
Return to Recent Questions
|