Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2

Thread: jquery IE bug

  1. #1
    New to the CF scene
    Join Date
    Sep 2010
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    jquery IE bug

    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:

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

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

  • #2
    Senior Coder Spudhead's Avatar
    Join Date
    Jun 2002
    Location
    London, UK
    Posts
    1,856
    Thanks
    8
    Thanked 110 Times in 109 Posts
    Yes, the window.innerWidth bit

    $(window).width() will return the viewport width.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •