Forum Moderators: open
Is there a way I can do this.
Thanks
<table width="100%" height="95%">
<tr><td align="left" height="imageheight">-insert header image-</td></tr>
<tr><td align="left">-insert your site's main content here-</td></tr>
<tr><td align="left" height="imageheight">-insert footer image-</td></tr>
</table>
If the content of the page is larger than the user's screen, it will expand with vertical scrolling. If it's LESS than the size of the user's screen, the table will expand the center row to fill the screen, and the header/footer rows won't expand because they have specific heights defined.
This is because (strictly speaking) tables are for tabular data, not for layout. The height of the table is supposed to grow/shrink automatically to fit the cata contained in the table.
However, it is still quite common to use tables with specified heights for layout, without a strict doctype.
If so, then couldn't you just get the window height with Javascript and then set the absolute image position in pixels with CSS?
Or if you just want it close enough, maybe even just set
<img style="position:absolute; top:92%;">