View Full Version : Centering Top Nav Bar (aka Smart Menu)
SteveB
01-24-2005, 09:11 PM
First, Thanks for all the great scripts on your site.
Second, I'm looking at using the Top Nav Bar menu and its easy to set up except that I can't seen to control its width or center it so it matches my site.
Thanks for your help.
SteveB
You can edit menu.js, find the lines which start with:
if (ie||ns6) HTMLstr += "<div id='MainTable' style='................
HTMLstr += "<table width='................
and change it to:
if (ie||ns6) HTMLstr += "<div id='MainTable' style='width:100%;text-align:center;'>\n";
HTMLstr += "<table width='700' bgcolor='"+this.bgColor+"' border='"+this.mainPaneBorder+"'>\n";
or anything that fits your website.
SteveB
01-26-2005, 04:02 AM
Thank You, FPIT
It worked first time.
Your help is much appreciated.
SteveB
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.