|
I don't seem to be able to center my drop down menus in javascript. How can I do this?
Return to Recent Questions
Q:
The drop down menus in javascript is the Table imbedded to the DIV.
To center the drop down menus in javascript you should paste it
within the <div>> or <table> with a static position and specify a center alignment for the drop down menus in javascript, for example:
<div align=center>
<script src="data.js"></script>
</div>
You should also set exact value in "px" for var menuWidth parameter, for example:
var menuWidth = "500px";
This can help to align your drop down menus in javascript correctly in all browsers.
Set also:
var absolutePos = 0;
Return to Recent Questions
Related:
- March 26, 2009 - Can you throw some light on how to create horizontal menu javascript download on ASP?
- March 26, 2009 - After click the links the css vertical menus stops showing up in cross-frame mode...
- Apr 10, 2009 - I can not figure out how to fix the drag drop javascript from going off the page in Mozilla...
- Apr 12, 2009 - Could you tell me how to create click popup menu if it's possible?
- Apr 12, 2009 - For some reason my item separator image won't show in javascript cascade menu...
- May 15, 2009 - I can see the down arrows of my javascript drag and drop on the main page only, how to fix it?
- May 18, 2009 - When I upgraded the browser to IE 7, the menu script doesn't show any more.
- Jun 01, 2009 - Is there a way to center horizontal drop down menus text because they are left justified now?
- Jun 01, 2009 - Is there any functionality for tree popup menu to show/hide specific branches?
- Jun 14, 2009 - The separator image doesn't show in dhtml menu free
- Jun 18, 2009 - Is there a way to show a links like I have in the horizontal menu css if the JavaScript is not allowed on computer?
|