Forum Moderators: not2easy
Here's a crappy picture showing what I want to do. The outline represents the visable screen:
--------------------------------
¦ Webpage Content goes here
¦
¦
¦
¦ Webpage content ends
¦
¦
¦--------------------------------
- Object that I want to add here (below webpage)
CSS
#hidden {
position:absolute;
top: 2000px;
left: 0;
display: none;
}
HTML
<div id="hidden">
Unseen text
</div>
I just want to place an object of every page and have it only be visable if the length of the page itself extends that low.
You may be able to float a div, that would take it out of the page flow, and then margin it way down the screen out of sight.
That's a good idea, but unfortunately doesn't work. Floated elements are actually placed in the flow before being removed and floated, so the margin creates a scrollbar. Even position:absolute doesn't accomplish this task. I don't believe this can be done with actual page content.
The exception would be if the material you want hidden on smaller screens is or can be an image. If so, you can set it as a background on the <body>. You would have to decide on a precise pixel height, though, and make the top of the image that high and empty, with the part of the image you want to become visible when the screen is larger below that.
For instance, if you wanted the material to show up at browser heights larger than 600px, you would need an image with 600px of empty space, followed by your material.
cEM