I am developing a website linked here with 3-level dropdown menus (main, and 2 sublevels). I'm developing with MODx cms and Wayfinder for menu-creation. The CSS is picked somewhere, higly modified and works, but I do not understand 1 detail.
When you look to the site's menu: rightmost main-menu item ("links") --> Links 1.2 , the 2nd level submenu of "Links 1.2" nicely pops up to the left of the 1st level submenu (inside the lighter contentbody.
The 2nd level submenus are positioned by a "Left: 120px (1 item width): which offsets it and shifts it to the right. See e.g. "beeld & geluid" --> "Audio" --> 2nd level submenu
For this rightmost submenu popping up inside the content it works by shifting it to the left by using a negative offset: Left: -240px; (which is the width of 2 items)
What I miss is: why this negative offset has to be 240px 2 items in stead of 1 item of 120px. The last is what I expected.
The CSS contains comments and the involved lines are 155 -161 in the css-file (you have to get it from the site since as a new user I'm unable to add a 2nd link because new users are limited to 1 link at max)
Question:
Can anyone explain this to me? The negative offset of 2 in stead of 1 item?
Best regards,
Hans Troost