what if the images are narrow than 250px? Should they keep their
original width, or should they be changed to 250px as well?
If you only want to adjust the width of the images that are wider
than 250px, you could do this:
$('#blogreviews img').each(function(index) {
if ($(this).width() > 250) {
$(this).css('width', '250px');
}
});
--Karl
_________________
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Mar 6, 2007, at 10:54 PM, Alp Guneysel wrote:
wow, that was stupid of me...
thanks.
On 3/7/07, Chris Domigan <[EMAIL PROTECTED]> wrote:
Try:
$("#blogreviews img").css("width","250px");
Chris
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/