I can't put the javascript layer menu where I want it on my page.
Return to Recent Questions
Q:
First, i like the time I save with this program, but it isn't
going to help me that much if I can't put the menu where I want it
on my page.
No matter how I set the "positioning", it shows up in exactly
the same place over and over. I've put it in table cells, I've given
it absolute positioning... none of it matters.
A:
If you want to center the menu paste it
within the <div> or <table> with a static position and specify a center alignment for it, for example:
<DIV align=center>
<<SCRIPT src="data/data.js" type=text/javascript>
</SCRIPT>
</DIV>
<table width=800>
<tr>
<td align=center width=600><script type="text/javascript" src="data/data.js"></script></td>
</tr>
</table>
Please, set exact value for var menuWidth parameter, for example:
var menuWidth = "600px";
This can help to align your menu correctly in all browsers.
Try also to specify units in "px".
Set also:
var absolutePos = 0;
Try that.
Return to Recent Questions
|