...

View Full Version : jQuery jquery IE bug



redenvy
09-07-2010, 10:16 PM
So im building a portfolio with a gallery. it works great in ff and webkit. for some reason IE8 doesnt like this line of code:


$elem.css('width',window.innerWidth+'px').css('visibility','visible');


is there any part of this that is incompatible with IE?

Spudhead
09-08-2010, 10:31 AM
Yes, the window.innerWidth bit :thumbsup:

$(window).width() (http://api.jquery.com/width/) will return the viewport width.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum