(c) 2016, Deluxe-Menu.com
Search  
Ctrl+F2 - enter/switch menu | Arrow keys - navigate | Esc - exit menu  
  Support
  FAQ
  Contacts
  About Us
  Recent Questions


 

    How can I center my navigation java script menu bar within my HTML page?

Return to Recent Questions


Q: How can I center my navigation java script menu bar within my HTML page? I have tried putting the script into a table that is centered. I have also changed the var menuWidth to 800px. The navigation bar is still right-justified instead of centered in both IE and Firefox/Mozilla.

A: Now you use absolute position for the java script menu bar:

var absolutePos=1;
var posX="0px";
var posY="0px";


You should set:
var absolutePos=0;






Return to Recent Questions

Related:
Bootstrap Panel Body Bootstrap Toggle Tabs  |  Bootstrap Tabs Styles  |  15 Recommended Website Makers Arranged by Level Of Popularity  |  Fresh CSS Bootstrap Carousel Video Players and Nav Menu Demos  |  30 Killer Free Bootstrap Image Carousel and Gallery Scripts  | 
Copyright (c) 2019, Deluxe-Menu.com
Home  |  Product Info  |  Samples  |  Download  |  Purchase  |  FAQ  |  Site Map  |  Terms of Use  |  Write Us
All rights reserved. AI Website Builder | Free AI Website Builder | Website Generator AI | AI web design generator | AI web page design generator