Site logo

Archived topic

Navigation Menu Sub Items Customisation

8 replies · Started by GeneratePressUser on August 10, 2022

Viewing posts 1–9 of 9

Hello Generatepress Team,

Hope you all are doing good.

I am currently using this css, which was given by your team:

.secondary-navigation ul ul {
	width: auto;
	white-space: nowrap;
}

How can I make it have minimum width of 100% and if the text is more than 100% then it should adjust accordingly making width more, more info in private box.

Hey Leo,

Oh, got it, do I also need to use this:

white-space: nowrap;

I want all that menu item in 1 line if its more than 100% width then it should take more width but show each item in 1 line only.

Hello Leo,

OK I have made it this:

.secondary-navigation ul li.menu-item-4959 ul, .secondary-navigation ul li.menu-item-4960 ul {
	min-width: 100%;
	white-space: nowrap;
}

I guess this will do the job?

Hey Leo,

Got it, just checked your edited reply, yes that makes sense, btw this code:

white-space: nowrap;

This will make the text be there in 1 line right?

Hey Leo,

Cool thanks a lot for the prompt response and help as always, have a great week, stay safe :)

No problem :)

This archived topic is closed to new replies.