Organizational Research By

Surprising Reserch Topic

how do i retrieve an html elements actual width and height


how do i retrieve an html elements actual width and height  using -'javascript,html,xhtml,dhtml'

Suppose that I have a <div> that I wish to center in the browser's display (viewport). To do so, I need to calculate the width and height of the <div> element. What should I use for maximum browser compatibility? Looking for a solution that works on IE6+, FF2+, Opera and Webkit-based browsers (Safari 3+, Google Chrome).
    

asked Oct 19, 2015 by 20shahi
0 votes
14 views



Related Hot Questions

7 Answers

0 votes
NULL
answered Oct 19, 2015 by sandeep bhadauria
0 votes
NULL
answered Oct 19, 2015 by manju bhargava
0 votes
NULL
answered Oct 19, 2015 by abhi
0 votes
NULL
answered Oct 19, 2015 by 20shahi
0 votes
NULL
answered Oct 19, 2015 by deven.bendale
0 votes
NULL
answered Oct 19, 2015 by vickeykumar66
0 votes
NULL
answered Oct 19, 2015 by rajnipancholi

...