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 vijayshukla80
0 votes
8 views



Related Hot Questions



Government Jobs Opening


...