I have provided this menu with more Supersubs plugin:
As you can see, the sub-menu that originates from the original "long-length submenu item" is not correctly. I know what I have to do, but how it should not be executed.
First of all, I need to know the width of the original menu. Then I need to set the left attribute of submenu in that width + 5 px (I used padding) + 1 px (so that the parent menu and submenus are not connected directly to each other) . How can I do this for all menu items?
Keep in mind that the width of the menu is not fixed, because the SuperSubus adjusts the width to the longest object.
I'm close ...
$ ("ul # Menu> gt; li & gt; ul ul ") .ech (function () {$ (this) .css (" left ", $ (this) .parent (). Parent (). Width () + 5 + 1);});
Comments
Post a Comment