1. Burnardo
  2. Commercial Templates
  3. Sunday, 17 September 2017
  4.  Subscribe via email
This is a remark to help others, should they encounter the same problem....

On a horizontal menu in Harmony, I had a 'parent' item (as a second last item on the righthand side) on which the sub-menu consisted of 2 columns.
Normally (without any custom CSS changes) the submenu unfolds down and to the right of the 'parent' item. It is (normally) only the very last menu-item (last to the right...) that unfolds its submenu to down and to the left.

But in my case the second last item had a larger width submenu (2 columns). The submenu therefore unfolded beyond the rightside of the page limit. It resulted in showing a horizontal scrollbar on the webpage and if scrolled to the right, a blank edge showed up to the right of the page, which is not what I wanted.

Here is my solution....
I can make the second last menu-item also unfold its submenu to down and left by using this CSS rule:


.hornav > ul > li:nth-last-of-type(2n) > ul {
left: auto !important;
}


This rule defines to (just like the li:last-of-type ) to use 'left' unfolding instead of the standard 'right' unfolding.

Hope it helps anyone...
Accepted Answer Pending Moderation
0
Votes
Undo
You are most welcome, glad to help out...

Burnardo
  1. more than a month ago
  2. Commercial Templates
  3. # 1
Accepted Answer Pending Moderation
0
Votes
Undo
Hi Ciaran,

i solved it with a hint from another post with this custom css:


.item-523.deeper.parent > ul {
left: auto !important;
right: 0%;
}


Thanks for this great forum!
Tanja
  1. more than a month ago
  2. Commercial Templates
  3. # 2
Accepted Answer Pending Moderation
0
Votes
Undo
Thank you Burnardo for sharing your solution! :)

CiarĂ¡n
  1. more than a month ago
  2. Commercial Templates
  3. # 3
Accepted Answer Pending Moderation
0
Votes
Undo
Hi there,

is there a similar solution for the Magnolia template? I tried this on without success. I would be great to have this working for the third last menu-item.

Thanks
Tanja
  1. more than a month ago
  2. Commercial Templates
  3. # 4
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!

Join Our Newsletter

* indicates required
We respect your privacy and do not tolerate spam and will never sell, rent, lease or give away your information (name, email, number, etc.) to any third party. Nor will we send you unsolicited email.
Joomla51 - Mullaghmore, Co. Sligo, Ireland
Joomla51.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by
Open Source Matters
the trademark holder in the United States and other countries.

We use cookies on our website. Some of them are essential for the operation of the site, while others help us to improve this site and the user experience (tracking cookies). You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.

Ok