[jQuery] Re: superfish variable width
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 specific selectors(via IDs on each top-level item) in the stylesheet to override as needed. Which may or may not be worth the effort in your case. If you do it, make sure you go through a full round of browser testing, as there were definite quirks that had to be accounted for. On 6/21/07, Olivier Percebois-Garve [EMAIL PROTECTED] wrote: Hi How to get the superfish (or suckerfish) menu to work under IE while using a variable width ? (i.e li elements having the width of their content) On my tests it produces a strange bug where the dropdown li is horizontally positionned after the end of the parent li... Olivier
[jQuery] Re: superfish variable width
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 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 needed. Which may or may not be worth the effort in your case. If you do it, make sure you go through a full round of browser testing, as there were definite quirks that had to be accounted for. On 6/21/07, Olivier Percebois-Garve [EMAIL PROTECTED] wrote: Hi How to get the superfish (or suckerfish) menu to work under IE while using a variable width ? (i.e li elements having the width of their content) On my tests it produces a strange bug where the dropdown li is horizontally positionned after the end of the parent li... Olivier
[jQuery] Re: superfish variable width
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 CSS that is in effect before your script runs, you might wrap the contents of each li in a div element, get the width of the div, then apply that width to the parent li. You would still need to ensure that the menu still degrades gracefully without the script though. Joel.
[jQuery] Re: superfish variable width
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 PROTECTED] wrote: 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 CSS that is in effect before your script runs, you might wrap the contents of each li in a div element, get the width of the div, then apply that width to the parent li. You would still need to ensure that the menu still degrades gracefully without the script though. Joel.