PDA

View Full Version : IE Glitch



ianglen
02-19-2013, 03:55 PM
I'm building a site in Dreamweaver with a variable size image depth - I've set the image size to 100% which works on all browsers except EI which doesnt expand the image to the full depth

<img src="../images/shad_04.jpg" width="14" height="100%" />

site : e-fficientenergy.co.uk

Anyone know a fix?
Ian

jscheuer1
02-19-2013, 05:29 PM
In the head, after the external script tag for jQuery, add this script:


<script type="text/javascript">
jQuery(function($){
var ie = /MSIE (\d+)/.exec(navigator.userAgent);
ie && ie[1] && $('table:eq(1) >tbody >tr >td[rowspan="3"]').css({height:$('table:eq(1)').height()});
});
</script>

That might not work, if not, this should do the trick:


<script type="text/javascript">
jQuery(window).load(function(){
var ie = /MSIE (\d+)/.exec(navigator.userAgent);
ie && ie[1] && jQuery('table:eq(1) >tbody >tr >td[rowspan="3"]').css({height:jQuery('table:eq(1)').height()});
});
</script>