Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Dynamic width for submenu

Dynamic width for submenu 07 Nov 2022 16:05 #66347

  • ihtus
  • ihtus's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 9
  • Thank you received: 0
Is it possible to configure the submenu width to be dynamic, that depends on the Menu Items width?
In the screenshot below, the width could be smaller, as the submenu items are short.

Attachments:

Please Log in or Create an account to join the conversation.

Dynamic width for submenu 07 Nov 2022 16:18 #66349

  • ced1870
  • ced1870's Avatar
  • Offline
  • Administrateur
  • Administrateur
  • Posts: 27471
  • Karma: 427
  • Thank you received: 3562
Hi
instead of giving a width for the submenu, you can setup "auto" as value
CEd
Joomlack Webmaster and Developer

Please Log in or Create an account to join the conversation.

Dynamic width for submenu 07 Nov 2022 16:21 #66350

  • ihtus
  • ihtus's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 9
  • Thank you received: 0
Thanks Ced.
Yes the "auto" value worked, but this settings messed up the sub-submenu position...
Attachments:

Please Log in or Create an account to join the conversation.

Dynamic width for submenu 07 Nov 2022 16:22 #66351

  • ced1870
  • ced1870's Avatar
  • Offline
  • Administrateur
  • Administrateur
  • Posts: 27471
  • Karma: 427
  • Thank you received: 3562
then for the submenu position, instead of px, use 90% for example :)
Joomlack Webmaster and Developer

Please Log in or Create an account to join the conversation.

Dynamic width for submenu 07 Nov 2022 16:27 #66352

  • ihtus
  • ihtus's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 9
  • Thank you received: 0
Ced, please see the screenshots.
The width of the sub-submenu is way too narrow now.



Attachments:

Please Log in or Create an account to join the conversation.

Dynamic width for submenu 07 Nov 2022 16:30 #66353

  • ced1870
  • ced1870's Avatar
  • Offline
  • Administrateur
  • Administrateur
  • Posts: 27471
  • Karma: 427
  • Thank you received: 3562
give me an url to check that
Joomlack Webmaster and Developer

Please Log in or Create an account to join the conversation.

Dynamic width for submenu 07 Nov 2022 18:25 #66355

  • ihtus
  • ihtus's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 9
  • Thank you received: 0
Ced, sorry- it's not possible, it's a internal web resource.

Please Log in or Create an account to join the conversation.

Dynamic width for submenu 07 Nov 2022 18:30 #66356

  • ced1870
  • ced1870's Avatar
  • Offline
  • Administrateur
  • Administrateur
  • Posts: 27471
  • Karma: 427
  • Thank you received: 3562
then try to add this css code to your page
span.titreck {
white-space: nowrap;
}
Joomlack Webmaster and Developer

Please Log in or Create an account to join the conversation.

Dynamic width for submenu 07 Nov 2022 18:38 #66357

  • ihtus
  • ihtus's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 9
  • Thank you received: 0
Ced, thanks, awesome sauce!
Attachments:

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.485 seconds

Fast and powerful creation, customizable and responsive.

Read More

Qui est en ligne

We have 1161 guests and no members online