Results 1 to 2 of 2

Thread: Smooth Navigation Menu Problem

  1. #1
    Join Date
    May 2010
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Smooth Navigation Menu Problem

    1) Script Title:
    Smooth Navigation Menu
    2) Script URL (on DD):
    http://dynamicdrive.com/dynamicindex1/ddsmoothmenu.htm
    3) Describe problem:

    I encoded the Smooth Navigation Menus into my website and was able to modify them to meet most of my needs. However, the horizontal navigation menu does not seem to want to center the items. I found the code to make it left aligned. I was able to change that to make it right aligned. However, when I put center next to the float it makes the different menu items stack on top of each other. Is there a way to center the menu items on the horizontal menu bar?

  2. #2
    Join Date
    Sep 2007
    Location
    The Netherlands
    Posts
    1,876
    Thanks
    49
    Thanked 264 Times in 256 Posts
    Blog Entries
    56

    Default

    Give it a width in pixels that suits your needs. Suppose you have: width:400px. Then style it as follows:
    position: absolute; left: 50%; margin-left: -200px; width: 400px
    (margin-left is the negative counterpart of the width divided by 2).
    ===
    Arie Molendijk.

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
  •