I have been working on a new design for our website and have run into an issue with IE that only happens on the live server.
In any browser except IE, it shows up normal. In IE, as you can probably see, it won't read the margin I have set. If I pull the site straight off of my computer, not off the live server, in IE everything looks perfectly fine. I don't understand why this problem would only show up once the site is live, and I also don't know exactly what to do to fix it without messing up the look in other browsers or removing the jquery to resize based on browser width. Help!
I think this is the relevant code:
$(window).resize(function(){
resizeUI();
});
$(document).ready(function(){
resizeUI();
});
// resize on page load AND window resize
function resizeUI(){
if($(window).width() > 960){
$('.top, #navmenu').css('position', 'fixed');
$('#container').css('margin','0 0 0 50%');
$('#container').css('left','-480px');
}
else{
$('.top, #navmenu').css('position', 'absolute');
}
} ;
From what I can tell it has something to do with the fact that all computers on campus have IE Document mode being set to IE7 instead of IE9. If possible, I need a workaround for this!