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