The Little Guy Posted October 15, 2009 Share Posted October 15, 2009 For some reason, chrome returns a different number when I get the width of a div. I am using this: var lft = document.getElementById('container').clientWidth; it works fine in Firefox, but not in chrome, what would be the best way to do this in chrome? The div is 950px but chrome says its like 1258px or something like that with the above code. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.