Forum Moderators: open
For example. A user has a viewable height inside the browser of 1000px and the whole content area including footer on a particular is 1100px. The user would only see 120px of the illustration. On another page, the whole content area including the footer is 500px, so the same user would see all of the illustration behind the footer on this page.
I can't use absolute positioning in the body tag as the content is different heights on each page. If I place the background image in the footer div, the image will only display as far as the detail in the footer.
Does anybody know a solution to this, or if it's even possible?
The very kindest regards.
Chris.
I can think of a more complex way -- use javascript and the DOM to overwrite the mark-up of the footer div if the client.availheight is sufficient to display the entire image. You would have to change the mark-up so the image is no longer a background of the footer div but a regular image, given both an absolute position and a z-index lower than the footer div, like -100 or something. Not sure it's worth the coding hassle, but that's the idea.
By the way, absolute position is measured relative to the immediate containing block, which is not always the body element.
I have one site that I created in 1999 that is not all that well coded -- most pages have scrollbars that extend beyond the text content, and on some pages, significantly beyond. The site has been doing very well for years and there's never been one mention of the scrollbars from either a regular visitor or from the business I created it for. I'm thinking that it's not so big a "sin" from a practical post of view.