|
Why my menu with javascript does not float and why I cannot centre the menu with javascript?
Return to Recent Questions
Q:
I think I am almost create my menu with javascript.
I would like to know a couple of things.
Why the menu with javascript does not float?
Why I cannot centre the menu with javascript?
A:
When you use floatable menu with javascript you can't use relative menu with javascript position.
So, if you use relative position for the menu with javascript and to center the menu with javascript you use <p> or <div> with the center alignment your menu won't float.
To center your floatable menu with javascript you should set absolute coordinates.
var absolutePos = 1;
var PosX = "50%";
var PosY = "40";
Return to Recent Questions
Related:
|