Perfect, Klaus!
Thanks, that does exactly what I want it to. Now to rewrite the HTML,
so the float div is generated automatically, and the caption is
generated from the alt attribute...
Seb
On 13 Feb 2007, at 21:03, Klaus Hartl wrote:
> Stupid me, I forgot a return statement (too much Ruby lately)... and
> also the unit seems to be required:
>
> $('div.image p').css('width', function() {
> return $(this).prev().width() + 'px';
> });
>
>
>
> -- Klaus
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/