Organizational Research By

Surprising Reserch Topic

Experts Most Trusted 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
7 views



Related Hot Questions



Government Jobs Opening


...