Results 1 to 3 of 3

Thread: Centering Top Nav Bar (aka Smart Menu)

  1. #1
    Join Date
    Jan 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Smile Centering Top Nav Bar (aka Smart Menu)

    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

  2. #2
    Join Date
    Jan 2005
    Posts
    40
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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.

  3. #3
    Join Date
    Jan 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thank You, FPIT

    It worked first time.

    Your help is much appreciated.

    SteveB

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •