• Resolved shandycreative

    (@shandycreative)


    Can the width of the drop down item be made smaller? The drop down box is about twice the width of the main menu box and I think it looks funny.

    TIA

Viewing 15 replies - 1 through 15 (of 17 total)
  • Hey there shandycreative,

    Hope you’re well today!

    This should be possible to do with some custom CSS. You can try adding the following code to Appearance >> Theme Options >> Custom CSS:

    .main-navigation ul ul {
    max-width: 100px;
    }
    
    .main-navigation ul ul a {
    min-width: 70px;
    max-width: 100px;
    }

    This should reduce the submenu to 100px in widht. If this doesn’t work could you please post link to your site so I can take a look?

    Hope this helps πŸ™‚

    Best regards,
    Bojan

    Thread Starter shandycreative

    (@shandycreative)

    Thanks so much. I’ll add this code and hopefully won’t need to pester you again. πŸ˜‰

    Hey again,

    Please let me know how that goes πŸ™‚

    Cheers,
    Bojan

    Thread Starter shandycreative

    (@shandycreative)

    Worked perfectly. I tweaked the min/max pixel number to fit what I had in mind, but this was the answer.

    Thanks so much!!!

    Thread Starter shandycreative

    (@shandycreative)

    Don’t shoot me….I just thought of one other thing in regards to this. How can I get the text to be “centered” in the drop down menu box? That would be really helpful. πŸ™‚

    TIA

    Hey again TIA,

    Glad you managed to get that going for you πŸ™‚

    Please try adding the following CSS code:

    .main-navigation ul ul li a {
    text-align: center;
    }

    This should center the links in the navigation dropdown. If this doesn’t work please post link to your site so I can check it out.

    Hope this helps πŸ™‚

    Cheers,
    Bojan

    Thread Starter shandycreative

    (@shandycreative)

    It worked great on one of the dropdowns items and not on the other. Weird.

    Here’s the link: http://shandywordpress.com/

    Thanks

    Hey again,

    I’ve tried to check your site but it appears that you have one of the maintenance plugins activated so I’m unable to see anything there πŸ™

    Could you please disable the plugin so I can check it out?

    Best regards,
    Bojan

    Thread Starter shandycreative

    (@shandycreative)

    Done….disabled.

    Thanks

    Hey again,

    This happens because the text is larger then the actual max width of the item. Please try adding this CSS for that specific item:

    li#menu-item-96 a {
    max-width: inherit;
    padding: 12px 0 !important;
    }

    Please let me know if this helps πŸ™‚

    Best regards,
    Bojan

    Thread Starter shandycreative

    (@shandycreative)

    Worked like a charm!! Thanks so much. I’ll try to behave going forward. πŸ™‚

    Glad I could help! πŸ™‚

    Cheers,
    Bojan

    Thread Starter shandycreative

    (@shandycreative)

    Thread Starter shandycreative

    (@shandycreative)

    I’m sorry…it’s me again. I’m still having an issue with the centering of text in a menu. See “Affilitations” which is drop down to “About Us” on http://shandywordpress.com/

    In addition, can you help resize the other drop down menu which come Under “Products”, then under “Prescription Products”. Those menu items are just too narrow?

    Sorry to be such a pest.

    Hey again shandycreative,

    Please try adding the following CSS code:

    li#menu-item-255 a {
      padding-left: 10px!important;
      min-width: 60px;
    }
    
    .main-navigation ul ul ul {
      min-width: 80px;
    }

    This should center the about sub menu and increase width of the prescription products sub menu.

    Please let me know if this helps πŸ™‚

    Cheers,
    Bojan

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘Can Drop Down Menu box width be changed?’ is closed to new replies.