Suppose that I have a that I wish to center in the browser\'s display (viewport). To do so, I need to calculate the width and height of the &l
that I wish to center in the browser\'s display (viewport). To do so, I need to calculate the width and height of the &l
&l
also you can use this code:
var divID = document.getElementById("divid"); var h = divID.style.pixelHeight;