www.webdeveloper.com
Results 1 to 3 of 3

Thread: Centering cascading menu

  1. #1
    Join Date
    Nov 2002
    Posts
    1

    Question Centering cascading menu

    Hello,
    I get the free cascading menu code to inset it on my web, was fine, just I would like that be in the center of page although resize the windows browser.
    How can I do it...??
    Thanks in advanced.
    Attached Files Attached Files

  2. #2
    Join Date
    Feb 2003
    Location
    Rhode Island, United States of America
    Posts
    448
    replace the line:
    Code:
    menu[0][0] = new Menu(false, '', 5, 0, 17, '#669999', '#006666', '', 'itemText');
    with:
    Code:
    menu[0][0] = new Menu(false, '', 5, document.body.clientwidth/2, 17, '#669999', '#006666', '', 'itemText');

  3. #3
    Join Date
    May 2006
    Posts
    1

    Tried it...

    I just changed the line you suggested but it returns an error when I do. I went over it a few times to make sure that I didn't do it wrong. The error I get is "Object required"

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles