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. Link to comment https://forums.phpfreaks.com/topic/177747-solved-chrome-div-width/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.