Black Friday 2026 50% off every plan Our biggest deal of the year on #1 Joomla products.
Ends in 12d 17h 39m 52s
Claim 50% off
Staff replied Templates

Main Menu Items

Asked by Mindsugar 5 years ago Last activity 5 years ago

Hi there,

with a certain resolution my main menu items move out of position because there is not enough space:

In this case I want neither that only the off-canvas-menu is available, or that the search-field and login button disappears, so that there is enough space for the rest of the menu.

Can you pls help me out?

Thanks in advance

Mindsugar

2 replies

Paul Frankowski Senior Staff

Hi,
On resolution 1398px mobile (off-canvas) menu doesn't make sense.
It's easier to reduce space between menu items and size of search field which take a too much space.
Yes, I talk to do this only on this and smaller resolution using custom CSS.

BTW

Maybe you should replace search field with new menu item with just search icon, hmm.

Paul Frankowski Senior Staff
5 years ago · edited

Maybe start from this example CSS code, which I use very often in my projects:

@media (max-width: 1399px) { 
.sp-megamenu-parent > li > a, 
.sp-megamenu-parent > li > span {padding: 0 10px;}
body.ltr .sp-megamenu-parent > li.sp-has-child > a::after, 
body.ltr .sp-megamenu-parent > li.sp-has-child > span::after {margin-left: 3px;}
}

You can also reduce font size a little bit etc. many thing you can do to safe space.

Log in to reply.