Results 1 to 5 of 5

Thread: jQuery Drop Line Menu not centered properly

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

    Question jQuery Drop Line Menu not centered properly

    Hello there,

    I'm installing the jquery drop line menu found here -- http://www.dynamicdrive.com/style/cs...rop_line_menu/

    and like some of the other commenters on that page, the drop down menu is not centered properly. I used the CSS listed there without modifying it.

    The one suggestion - setting width to 82% and setting left & right margins to auto - did not work for me.

    It also added the white bar above the nav bar.

    Here is the blog:
    http://mrstepp.typepad.com/blog/

    Has anyone encountered this, and do you have any pointers? I'm fairly new to this - esp implementing on Typepad.

    Thank you thank you thank you!

  2. #2
    Join Date
    Sep 2008
    Location
    Seattle, WA
    Posts
    135
    Thanks
    1
    Thanked 11 Times in 11 Posts

    Default

    Put the menu into a div container and then use CSS to position the div, not the menu.

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

    Default More on centering

    Quote Originally Posted by simcomedia View Post
    Put the menu into a div container and then use CSS to position the div, not the menu.
    No No No. This doesn't work.
    I dont think this menu will allow us to center the UL or rather the TEXT of the menu inside the top 100% div (and subsequent divs).

    I think it relies on the float:left to work .....

  4. #4
    Join Date
    Sep 2008
    Location
    Seattle, WA
    Posts
    135
    Thanks
    1
    Thanked 11 Times in 11 Posts

    Default

    Are you trying to center the menu on the page? Or trying to center the text within the menu's <li>'s?

  5. #5
    Join Date
    Nov 2005
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by simcomedia View Post
    Are you trying to center the menu on the page? Or trying to center the text within the menu's <li>'s?
    Short, 5 item menu centered on page, 100% with, text centered in menu,
    dropdowns centered under that. I cant remove the float:left.

    I could maybe try an absolute position in a div container, I already tried a centering div wrapping it, to no avail.

    Ideas?

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
  •