Hello!
I have an image with mypic class
I'm using the load event to set the width and height of this image:
$(window).load(function() {
//Here I calculate final w and h
$('.mypic').css("width",w);
$('.mypic').css("height",h);
$('.mypic').height(h);
$('.mypic').width(w);
});
In firefox I have no problem at all but in webkit browsers the height is not set and I don't know why. It's strange since the width is set without problems. Don't know what happens with safari and chrome. Am I missing something? Could anybody help me?
Thankyou very much.