WebSite X5Help Center

 
Andre E
Andre E
Moderator

Menu width according to menu text length  en

Author: Andre E
Visited 1840, Followers 1, Shared 0  

In X5 the menu width needs to be as long as your longest text in the menu, else that longer word wil not be fully visable.

This can end up taking up a lot of space in the complete horizontal menu specialy if you have more words that are a lot smaller, these smaller menu items take up the same width as the long word.

And yes, i know you can use a second line for the menu item but this is not always a good and nice looking solution.

So to get a nice menu (a menu that is filled nicely) we need to make up all kind of words or shortcuts to make all the menu items about the same length.

My request, make a TAG in the menu object so the width of every menu item takes up the space of the menu word/item, this is also seen in almost all modern websites on internet,  and makes the menu items and words to be used for it way more versatail and you can use the words you want.

Because the menu is a very importand part of the website to guide your visitors correctly through your site you can do a way better job.

offcource this is for the horizontal main menu most importand.

Thanks!

Posted on the
6 ANSWERS
John S.
John S.
User

+1

Read more
Posted on the from John S.
Giuseppe Guida
Giuseppe Guida
User

+1

Read more
Posted on the from Giuseppe Guida
Sinisa B.
Sinisa B.
User

+11

Read more
Posted on the from Sinisa B.
Antonio M.
Antonio M.
User

+1

Es una de las cosas que peor efecto da a la página, el hecho de tener un apartado más largo obliga a que el resto de apartados tengan que tener un ancho superior. Y estéticamente queda muy feo.

Read more
Posted on the from Antonio M.
 ‪ KolAsim ‪ ‪
 ‪ KolAsim ‪ ‪
Moderator
Best User of the month ESBest User of the month PT
Andre E
... ... My request, make a TAG in the menu object so the width of every menu item takes up the space of the menu word/item, ... ... ... 

(It > En) ...hello, ... the idea is excellent, and so be it; ... it has also been expressed in the past years for the old versions ...
... but it's not a problem for those interested now! ...
... already from v.12 I have come up with and proposed an exclusive and very simple code ...
... those who want to try it have to do only one copy / paste to obtain this simulated result on a sample site of the Marketplace:

... in case it would be better to post the LINK of your site to evaluate inconsistencies, but in principle for similar structures this very simple code for the /HEAD  section would be sufficient, 3rd  option:
<style>
div[id^='imHeader_imMenuObject_'] > ul > li > .label-wrapper {
width: auto !important; padding: 0 15px 0 15px !important; }
</style>

.

ciao

.

Read more
Posted on the from  ‪ KolAsim ‪ ‪
Andre E
Andre E
Moderator
Author
Best User of the month EN

Thanks KolAsim, I know that your code is available. But it would be nicer to implement by using a tag in x5 for this. And this way everybode can easily benefit.

Anyway just used it but the level menu has now the same problem, anyway i don't think we should discuss that here. Also the hamburger menu is strange looking in lower resolutions.

Read more
Posted on the from Andre E