I\'m trying to create a website where the pages resize to the windows size on the fly. While we can get images and such to resize automatically as a % of the div size. We do
So you can use screen.availHeight to calculate a constant value which you can multiply with the font size.
window.onload = function () { document.body.style.fontSize = (Math.ceil(screen.availHeight * parseInt(document.body.style.fontSize) / 600) + 'px'; }