|
Is it possible to keep my floating javascript tree menu in the centre of the page like <centre></centre>
Return to Recent Questions
Q:
Hi, I am testing your javascript tree menu system for my company and would like
to know how to keep the javascript tree menu in the centre of the page like
<centre></centre>. I know how to do it without a floating javascript tree menu but
cannot work out how to do this when I use absolute position for the javascript tree menu.
A:
To center your floatable [menu] you should set absolute coordinates.
When you use floatable javascript tree menu 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 tree menu you use <p> or <div> with the center alignment your [ke] won't float.
Return to Recent Questions
|