• hi there,

    I would like the sub menu to align left and when the sub menu appears to be the same width as the content.

    I have tried setting a custom size with px but would like it if it can please be the width of the content.

    • This topic was modified 3 years, 1 month ago by swatch360.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author megamenu

    (@megamenu)

    Hi swatch360,

    Unfortunately it is not possible for the sub menu to automatically adjust its width to fit the content, as the content does not necessarily have an intrinsic width. E.g. an image could be displayed at 100px or 200px wide, or text could be displayed on one line or multiple lines. Rather, it is the container (the sub menu in our case) that determines the width, and the content within then adapts to the container width.

    The theme editor lets you determine the widths of the sub menus globally, and if you want more fine grained control (adjusting the width of sub menus individually), that is possible with the custom item styling functionality in pro:

    https://www.megamenu.com/documentation/item-styling/

    Regards,
    Tom

Viewing 1 replies (of 1 total)
  • The topic ‘submenu menu align left and width be sized to content’ is closed to new replies.