Browsers and % body height

If you set your page’s body height to 100% and your window is 900 pixels high, you would expect your body to be 900 pixels tall. This seems to be supported in both IE and Firefox 1.0.7.

What about 200%? IE gets this right, Firefox says 3600! WTF.

Here’s a set of readings of the body.offsetHeight property:

% Firefox IE
100% 900 900
110% 1089 990
150% 2025 1350
200% 3600 1800
300% 8100 2700

Not what I was expecting.

This entry was posted on Thu, 17 Nov 2005 18:41:00 GMT . You can follow any any response to this entry through the Atom feed. You can leave a comment or a trackback from your own site.
Tags


Trackbacks

Use the following link to trackback from your own site:
http://blog.craz8.com/trackbacks?article_id=browsers-and-body-height&day=17&month=11&year=2005

Comments

Leave a response

Leave a comment