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 11, 2015 by akhilesh
0 votes
7 views



Related Hot Questions

7 Answers

0 votes
NULL
answered Oct 11, 2015 by akasati02
0 votes
NULL
answered Oct 11, 2015 by rolvyrf
0 votes
NULL
answered Oct 11, 2015 by sameer rathore
0 votes
NULL
answered Oct 11, 2015 by ukohale
0 votes
NULL
answered Oct 11, 2015 by abhi
0 votes
NULL
answered Oct 11, 2015 by girisha
0 votes
NULL
answered Oct 11, 2015 by devkumargupta

...