Results 1 to 8 of 8

Thread: DD Mega Menu Positioning?

  1. #1
    Join Date
    Jul 2011
    Posts
    5
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default DD Mega Menu Positioning?

    1) Script Title: DD Mega Menu

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...ddmegamenu.htm

    3) Describe problem: unable to positioning the dropdown megamenu.

    So hello, I've been trying to positioning this with css. I also checked the .js which also has the "megawrapper" div for positioning.
    For some reason I simply can't move the megamenublock or the block gets cut off when I position it with "right".

    I'd appreciate any help!

  2. #2
    Join Date
    Aug 2004
    Posts
    9,886
    Thanks
    3
    Thanked 962 Times in 951 Posts
    Blog Entries
    15

    Default

    What do you mean by positioning it using CSS? Are you basically trying to get the drop down menu to position to the right of the anchor link instead of beneath it?
    DD Admin

  3. #3
    Join Date
    Jul 2011
    Posts
    5
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Actually I'd like to position it more to the left. Well, I simply can't seem to move it for some reason.

  4. #4
    Join Date
    Feb 2010
    Location
    Toronto
    Posts
    81
    Thanks
    5
    Thanked 1 Time in 1 Post

    Arrow

    Hi !
    I posted a question same like this on 7-22-2011, 'Subject : Adjusting DD Mega Menu and the second menu absolute positions'. I have an answer but not complete one. You can change the value of that indicated in red in line 62 of ddmegamenu.js file
    Code:
    $wrapper.css({visibility:'visible', left:offset.left-(orienttoleft? $wrapper.outerWidth()-$anchor.outerWidth()-ddmegamenu.wrapperoffset[0] : 0),
    negative value takes the menu to right and positive value takes to left. The second menu moves along with it. And you can probably adjust the height by adjusting the line-height of the item of link. I couldn't find the code in the file to directly adjust the height.
    I hope it could be helpful to you.

  5. The Following User Says Thank You to naremkim For This Useful Post:

    Xar (07-25-2011)

  6. #5
    Join Date
    Jul 2011
    Posts
    5
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Oh that makes more sense..
    No wonder that I couldn't find it in the css .

    Thanks!
    I hope I can turn this out in something better.

  7. #6
    Join Date
    Feb 2010
    Location
    Toronto
    Posts
    81
    Thanks
    5
    Thanked 1 Time in 1 Post

    Arrow

    O.K. Thanks.

  8. #7
    Join Date
    Jul 2011
    Posts
    5
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Well, I still don't get why this isn't css controlled.
    The JS messed up a lot for me by taking over the style D:.

  9. #8
    Join Date
    Jul 2011
    Posts
    5
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    *BUMP*
    Still unable to position it properly.
    I want to have the dropdown on a specific place (all on the same spot), or more to the left.

    I'm not a javascript expert so any response is appreciated!

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
  •