How can I change Submenu width

Posted in: Newsmag
Post count: 5

Hello guys,

I need your support, please.

My submenu breaks into two lines when the submenu name is so long.

demonstration

How can i change Submenu width?

Thanks again,
Grether

Post count: 35449

Hi,

You can increase the submenu width using a custom css, if you need help with this, please provide me a link to your website and I will help you.

Thank you!

Post count: 5

Thanks for you Support, Calin!

It seems simple to create custom css code (I think).
I will try it, and if I have any problem, I’ll let you know.

Thanks again! 🙂

Post count: 5

Hello Calin,

I think I found it (see markups in green):

possible solution

I create a custom .css code, and apparently works! But I haven’t certainty if my custom .css code is correct.
I’m not a WebDesigner, I’m a C Programmer. I’m still learning, sorry 🙁

If you confirm that .css code below is correct, I will really appreciate it.

.menu-header-menu-container .menu-item-37 .sub-menu
{
width: 25em !important;
}

I had to put property “!important”.
In my searches, seems it necessary, I guess.

Thanks again,
Grether

Post count: 35449

Hi,

Yes, the code is right, it will be apply only on the submenu from element with number 37, in this way it will not affect other elements from the theme.

Thank you!

Viewing 5 posts - 1 through 5 (of 5 total)
The forum ‘Newsmag’ is closed to new topics and replies.