• I’ve added some subitems to a menu, but they appear horizontally instead of vertically, which doesn’t look very good. Is there an option I’ve failed to click to specify a vertical submenu item arrangement? Failing that, is there a way to control the width of a submenu, which should force the items to wrap within that space?

Viewing 11 replies - 1 through 11 (of 11 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    It’s a CSS issue, not something to click. What’s the URL of your site?

    Thread Starter wordwrkr

    (@wordwrkr)

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    .desktop .hmenu>li>ul>li {
    float: none;
    display: block;
    }

    Will get you vertical, but the menu your theme uses pushes the left margin way negative. I’m not sure how to tweak that. You may want to drop a note to the theme’s author, Author: Smudge Graphic Design Author URI: https://www.smudgegraphicdesign.com/

    Thread Starter wordwrkr

    (@wordwrkr)

    Thank you! I will give that a try.

    Thread Starter wordwrkr

    (@wordwrkr)

    Well, that worked! Unfortunately, whenever I add an item to the menu, the submenu gets wider and wider. You’ll see what I mean if you visit https://www.abmi.net and click on Sell A Business. With just one subitem, the submenu is the right width, but as I add items, the menu width increases.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Yes. The menu uses one massive margin-left: -soemthingpx style. You’ll have to figure that out or check with the theme’s author.

    Thread Starter wordwrkr

    (@wordwrkr)

    But would that explain with the menu gets wider each time I add a subitem. Also, why would the margin-left value affect the overall width of the submenu?

    Thread Starter wordwrkr

    (@wordwrkr)

    Oops:

    But would that explain WHY the menu gets wider each time I add a subitem? Also, why would the margin-left value affect the overall width of the submenu?

    Thread Starter wordwrkr

    (@wordwrkr)

    I’m wondering if this is the piece of code that is giving me trouble:

    {
    position: absolute;
    top: 23px;
    left: 92.61%;
    margin-left: -161px !important;
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    transform: rotate(0deg);
    z-index: 103;
    width: 175px;
    height: 133px;
    }

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    YOu should check with the theme’s author!

    Thread Starter wordwrkr

    (@wordwrkr)

    Unfortunately that is not an option. But thank you very much for your help with this. It is much appreciated.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Controlling menu format’ is closed to new replies.