Results 1 to 2 of 2

Thread: JsDOMenuBar Problems Centering

  1. #1
    Join Date
    Sep 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unhappy JsDOMenuBar Problems Centering

    JsDOMenuBar version 1.11

    http://www.dynamicdrive.com/dynamici...ubar/index.htm

    I am having problems centering the menu. I usually put
    }
    menuBar.moveTo(95, 10);
    }

    but i need it to center at the top of the page so a 1024x768 monitor can see it centered just like a 1280x1024 lcd can see it. can u help?

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    From the installation package, use demo4_strict.htm as your template and change this:

    HTML Code:
    <div id="staticMenuBar"></div>
    in the body of that page to:

    HTML Code:
    <div style="width:400px;margin:0 auto;" id="staticMenuBar"></div>
    You can use whatever value for the width that you prefer but, it must have one. With a declared width style property, in strict mode, most modern browsers (including IE) will center with margin:0 auto; set.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

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
  •