I need to create a DIV where width=height, and height=100% of the viewport (which, obviously, is variable).
width=height
height=100%
In other words, a perfectly sq
You could use Javascript and get the screen size. After which you could set width and height accordingly.
window.screen.width, and window.screen.height should work.
You could then use this information and generate a tiny bit of CSS for the page to be displayed accordingly.