Auto width for submenus?

Feel free to talk about everything related to our Joomla Products
Rate this topic: Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.
GK User
Wed Aug 24, 2016 11:32 pm
Hi,
I dont want all sub menus to be with same fixed width. Any chance to get them to get the width from the text + the padding?

Thanks,
Gorast
User avatar
Platinum Boarder

teitbite
Fri Aug 26, 2016 9:58 am
Hi

May be hard since each submenu has position:absolute attribute, which doesn't flex, but tell me the url to the page You would want it and I'll check to be 100% sure.
User avatar
Moderator

GK User
Fri Aug 26, 2016 2:02 pm
Hi,
here is the website http://mnt.gorast.com
Its based on GAME template.

Thanks,
Gorast
User avatar
Platinum Boarder

teitbite
Sat Aug 27, 2016 11:46 am
Hi

Sorry, but I do not see a way to do that automatically. If You have just a single column and no modules there than I think I would be able to come up with an idea, but as it's now the best I can offer is to set the widht of each submenu separately with css. Like for example:

Code: Select all
.gkMenu > ul > li:nth-child(2) > .childcontent {
width: 200px !important;
}

.gkMenu > ul > li:nth-child(3) > .childcontent > childcontent-inner > gkcol:nth-child(2) {
width: 75px !important;
}
User avatar
Moderator


cron