[jQuery] Re: superfish variable width

2007-06-22 Thread Olivier Percebois-Garve
I came up with that (changed in your code): It seems to be working but the 3rd level is broken var sfHovAr=$('li[ul]',this) .applyHovers(over,out) .find("a").each(function(){ var $width = $(this).width(); $(this).parent().width($width);

[jQuery] Re: superfish variable width

2007-06-21 Thread Olivier Percebois-Garve
thx. I'll look into that that some times. My co-worker went with : http://www.cssplay.co.uk/menus/variable_dl.html But its not a satisfiying code. Since I'm trying to push suckerfish (superfish) as our default menu system, I'd love to get around that issue. On 6/21/07, Joel Birch <[EMAIL PROTECTE

[jQuery] Re: superfish variable width

2007-06-21 Thread Joel Birch
On 22/06/2007, at 12:45 AM, Olivier Percebois-Garve wrote: I mean getting the width of each li's content and then to give that width to the li On 6/21/07, Olivier Percebois-Garve < [EMAIL PROTECTED]> wrote:could such behavior be scripited ? I'm sure it could be scripted. Depending on the

[jQuery] Re: superfish variable width

2007-06-21 Thread Olivier Percebois-Garve
I mean getting the width of each li's content and then to give that width to the li On 6/21/07, Olivier Percebois-Garve <[EMAIL PROTECTED]> wrote: could such behavior be scripited ? On 6/21/07, Su <[EMAIL PROTECTED]> wrote: > > If I recall correctly, suckerfish menus assume each of the items i

[jQuery] Re: superfish variable width

2007-06-21 Thread Olivier Percebois-Garve
could such behavior be scripited ? On 6/21/07, Su <[EMAIL PROTECTED]> wrote: If I recall correctly, suckerfish menus assume each of the items is going to be the same width. I've gotten around this by first styling a base width that they'd all get, and then basically listing a *lot* of very spec

[jQuery] Re: superfish variable width

2007-06-21 Thread Su
If I recall correctly, suckerfish menus assume each of the items is going to be the same width. I've gotten around this by first styling a base width that they'd all get, and then basically listing a *lot* of very specific selectors(via IDs on each top-level item) in the stylesheet to override as