Home News Contact Us Forum About Us Demos Products F.A.Q.
Shopping Cart
You currently have 0 items in your cart.


Recent Events
  • 31/12/2023 New Year SALE

    We are glad to announce New Year SALE. 25% discount for all our extensions. Use NY24 coupon code. Hurry up the discount is valid till 7 January.

  • 21/11/2023 BLACK FRIDAY 23 is coming

    BIG SALE, 35% discount for all our extensions. Use BF23 coupon code. Hurry up the discount is valid till 27 November.


2Checkout.com, Inc. is an authorized retailer of goods and services provided by ARI Soft. 2CheckOut




Follow us on twitter



Welcome, Guest
Please Login or Register.    Lost Password?

How to set width of submenus
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: How to set width of submenus
#54909
How to set width of submenus 9 Years, 5 Months ago Karma: 0
This seems like it would/should be really easy, so I think I am missing something simple, but how do I set the width of the submenu dropdowns, like on this site: mortarnet.com. I see that the width is being set using JS but what is the logic and how can I control it? The width it is using is too narrow.

Thanks
The administrator has disabled public write access.
 
#54914
Re:How to set width of submenus 9 Years, 5 Months ago Karma: 760
Hello,

When "Auto width" parameter is enabled, the extension calculates width for menu items automatically. It sets the same menu width for menu items from one parent. If you want to show text of sub-menu items in one line, add the following CSS rule to "CSS Styles" parameter in module settings:

.ux-menu-sub LI A {white-space: nowrap;}

Regards,
ARI Soft
The administrator has disabled public write access.
 
#55208
Re:How to set width of submenus 9 Years, 4 Months ago Karma: 0
Thanks for that suggestion. I turned off auto-width and am not setting it manually which gives me more control, but then I notice another problem. Since its a responsive site I am testing at different widths. When site is in phone width I hide the Ari menu and use a different menu system. But if I load the site in mobile view and the stretch it out again to full wide, the Ari menu does not work because I suppose the width/height calcs it does on load do not work when it is hidden.

So the question is... is there a way to recalc on screen re-size instead of just on load?
The administrator has disabled public write access.
 
#55209
Re:How to set width of submenus 9 Years, 4 Months ago Karma: 760
The extension doesn't support this ability.

Regards,
ARI Soft
The administrator has disabled public write access.
 
Go to topPage: 1