Different width result in different browser $("#div1").width() ?

Posted by learner on Stack Overflow See other posts from Stack Overflow or by learner
Published on 2010-06-15T15:12:03Z Indexed on 2010/06/15 15:22 UTC
Read the original article Hit count: 297

Filed under:
|
|
|

I am using jquery to determine the width of the control:-

$("#div1").width();

There is a difference in width of the div between IE8 (in compatibility view) and Firefox. Width is not same.

e.g ie : 1887 FF : 1898

How to tackle it?

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about jQuery