(c) 2007, DHTML-Menu.com
 
   
   
  Support
  Recent Questions
  Write To Support
 

    I don't seem to be able to center my down menu in javascript. How can I do this?

Return to Recent Questions


Q: The down menu in javascript is the Table imbedded to the DIV.

To center the down menu in javascript you should paste it within the <div>> or <table> with a static position and specify a center alignment for the down menu 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 down menu in javascript correctly in all browsers.
Set also:
var absolutePos = 0;






Return to Recent Questions

Related:
   
Copyright (c) 2012, DHTML-Menu.com
Home  |  Product Info  |  Samples  |  Download  |  Purchase  |  FAQ  |  Site Map  |  Write Us
All rights reserved. bootstrap slider | parallax scrolling | website builder reviews | website editor | html slider