AbanteCart Community

Shopping Cart Operations => Tips and Tricks => Topic started by: OneMore on January 03, 2024, 08:14:19 AM

Title: Solution - How to avoid last tile from category menu going beyond page width.
Post by: OneMore on January 03, 2024, 08:14:19 AM
For those having many categories in the main menu, with — on computers — the last drop down tile beeing displayed beyond the page width, here is how you can bring it back to the left.

In "storefront/view/default/stylesheet/style.css", add:
section#categorymenu > nav.subnav > ul.categorymenu > li:last-child > a + div.subcategories {
  left:-200px;
}
Title: Re: Solution - How to avoid last tile from category menu going beyond page width.
Post by: Basara on January 04, 2024, 02:20:45 AM
Thank you, OneMore
Title: Re: Solution - How to avoid last tile from category menu going beyond page width.
Post by: Stelladario12 on June 06, 2025, 06:11:39 AM
nice
Title: Re: Solution - How to avoid last tile from category menu going beyond page width.
Post by: owbellowing on September 04, 2025, 11:22:32 PM
Grateful for your help, OneMore
Title: Re: Solution - How to avoid last tile from category menu going beyond page width.
Post by: Roslynnleys on September 13, 2025, 07:19:04 AM
It really helps when there are too many categories in the main menu.
Title: Re: Solution - How to avoid last tile from category menu going beyond page width.
Post by: alcor zhang on November 10, 2025, 08:25:11 AM
Thanks for sharing this helpful tip on fixing the category menu issue. I've had similar problems with page width, so your solution is really useful. Great to see the community sharing experiences!
Title: Re: Solution - How to avoid last tile from category menu going beyond page width.
Post by: irtsurpris on November 10, 2025, 08:55:32 PM
I've been struggling with that overflow issue for ages — the last dropdown always went off-screen on larger menus. Your CSS tweak fixed it perfectly. Simple and clean solution!
Title: Re: Solution - How to avoid last tile from category menu going beyond page width.
Post by: bullfinchepolitician on November 10, 2025, 09:35:55 PM
It sounds quite confusing to a newbie like me. :-\
Title: Re: Solution - How to avoid last tile from category menu going beyond page width.
Post by: Niennow Amanda on May 03, 2026, 09:51:56 PM
Hey everyone, struggling with dropdown menus overflowing on desktop? I had the same issue! If your last category dropdown is going off-screen, this CSS fix might help. It's like fine-tuning Ragdoll Archers, just a small adjustment for a big impact. Add this to your style.css:

section#categorymenu > nav.subnav > ul.categorymenu > li:last-child > a + div.subcategories { left:-200px; }

Hopefully, this helps keep your menu tidy!