0 votes
1 view
in Web Technology by (12.4k points)
edited by

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? Please include information on browser compatibility.

Please log in or register to answer this question.