views:

243

answers:

1

I've been stuck on this one for some time now and would really appreciate some assistance. I'm developing a superfish horizontal dropdown menu.

I would like to know how to, using supersubs, set the width of the dropdown menu items to that of the largest items width in the drop down.

The default is : $('ul.sf-menu').supersubs({ minWidth: 40, maxWidth: 41, extraWidth: 1 }).superfish();

I would like something like : $('ul.sf-menu').supersubs({ minWidth: 40, **maxWidth: auto or 100%**, extraWidth: 1 }).superfish();

I would appreciate any help at all.

Regards, Byron

+1  A: 

supersubs min and maxwidth are in em's not % or pixels

Karhusaari
Thanks, i got this sorted. For anyone wondering, my problem was that i was calling the supersubs on sf-menu before the DOM had loaded, which obviously didnt resize the elements to the largest width.
Byron Cobb