Images Rendering Unusually in IE6
Hi All:
I've found that images in my blog are rendering correctly across every relevant browser except IE6. For some reason, in IE6, some of the images in some posts appear stretched/skewed. Interestingly, this problem relates only to images in posts, as opposed to header images, logos, etc. And the text renders normally. The blog address: http://blog.rarewineco.com. Any input or advice would be much appreciated. Many thanks and kind regards. |
In js.php delete this:
/* Max-width for images in IE6 */ var centerwidth = jQuery("td#middle").width(); /* Images without caption */ jQuery(".post img").each(function() { var maxwidth = centerwidth - 10 + 'px'; var imgwidth = jQuery(this).width(); var imgheight = jQuery(this).height(); var newimgheight = (centerwidth / imgwidth * imgheight) + 'px'; if (imgwidth > centerwidth) { jQuery(this).css({width: maxwidth}); jQuery(this).css({height: newimgheight}); } }); /* Images with caption */ jQuery("div.wp-caption").each(function() { var captionwidth = jQuery(this).width(); var maxcaptionwidth = centerwidth + 'px'; var captionheight = jQuery(this).height(); var captionimgwidth = jQuery("div.wp-caption img").width(); var captionimgheight = jQuery("div.wp-caption img").height(); if (captionwidth > centerwidth) { jQuery(this).css({width: maxcaptionwidth}); var newcaptionheight = (centerwidth / captionwidth * captionheight) + 'px'; var newcaptionimgheight = (centerwidth / captionimgwidth * captionimgheight) + 'px'; jQuery(this).css({height: newcaptionheight}); jQuery("div.wp-caption img").css({height: newcaptionimgheight}); } }); or try changing the setting for Configure CSS & JS -> Javascript: External file or inline? |
All times are GMT -6. The time now is 04:36 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.