html - Do the browsers have a maximum height for the body/document? -
my question is, if come across limitation regarding height of html page.
if browser-specific (especially ie7), or maybe client-specific (memory etc.) or else.
any links or experiences welcomed.
yes, there technical limit height of page. (there's practical limit – no 1 can use page that's billions of pixels high, , if page high, you're doing wrong.)
that said, there 2 different limits consider: maximum height of element can specify in css, , maximum total height.
both vary browser browser.
slickgrid deals virtual scrolling, has know maximum height of element; the code uses detect here. put in fiddle: (these approximate)
- chrome: 512,000,000
- firefox: 6,000,000
- ie8-9: 1,000,000
- ie6-7: 128,000,000 (yes, more newer ies)
to test maximum total height, put this test, fills page 11,000 <div>s 99,999px in height, total of ~1.1 billion pixels of height.
- chrome seems lose marbles around 1.08bn px, , somewhere north of 5bn px, scrollbar disappears entirely.
- firefox's scrollbar disappears around 107,398,926 px
- ie on place,
<div>s getting misplaced , sized incorrectly.
Comments
Post a Comment