(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:
Best 50 Inspirational and Beautiful HTML Themes Collection Mobile-friendly Web Page Themes Review  |  Bootstrap Site Themes Review  |  Top 41 Wonderful CSS3 Templates Collection  |  Top 53 Killer HTML Templates List  |  Mobile Page Layouts Overview  | 
Copyright (c) 2019, Deluxe-Menu.com
Home  |  Product Info  |  Samples  |  Download  |  Purchase  |  FAQ  |  Site Map  |  Terms of Use  |  Write Us
All rights reserved. top web builder | bootstrap navbar | easyhtml5video.com | html slider | free bootstrap templates