12
I'm using jQuery to shrink a div's width, like this:
$('div#foo').animate({width: 0},someSpeed);
While it's shrinking, the text reflows to fit the ever-thinner div. I don't want this to happen - I want the text to stay as it is, just disappearing from view as the width decreases, as happens if you do $('div#foo').slideUp().
Is there a CSS trick or some other way to make this work?