views:

19

answers:

0

Normally, if you load a doc into an iFrame by setting the src attribute and subsequently shorten the iFrame by decreasing the style's bottom parameter (for example), the text/etc in the document remains stationary on the screen (the absolute position of the document on the screen doesn't change), the bottom portion of the document is "cropped" but you can, of course, scroll it into view if necessary.

I require a different (opposite?) behavior: When the top position of the iFrame is increased (the top is lowered), I would like the top portion of the document to be "cropped" with the lower portion of the document contents remaining stationary on the screen (with the user still able to scroll the hidden portion of the document into view if necessary).

I think what I'm asking for is a way to make the origin of the iFrame its lower-left-hand corner rather than its upper-left-hand corner so that a change to top doesn't move the iframe (and the document) downward on the screen but shortens the iframe while retaining the position of the frame wrt the lower-left-hand corner. In this way, the document contents should remain stationary on the screen, just as it does (normally) if you raise the iframe's bottom position.

Is this possible?

Thank you.