How to keep my floating html menu in the centre of the page like <centre></centre>
Return to Recent Questions
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 floating menu but
cannot work out how to do this with it floating.
A:
When you use floatable menu you can't use relative menu 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.
Return to Recent Questions
|