tags:

views:

26

answers:

1

Hi. I am making this web page and I want the table on the right to have 100% height, yet when I view it in the browser, it isn't maximized vertically. You can view it here:

http://wpiix10.x10.mx/ifoot8.htm

See the pink background table on the right side? It should be 100% of the web page's height yet it's small.

Here's the code I'm using:

<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Page 1</title>
</head>

<body>

<table border="0" width="100%" cellspacing="0" cellpadding="0" height="100%" bgcolor="#C0C0C0" style="position: absolute; left: 0; bottom: 0">
    <tr>
        <td>
        <table border="0" width="100%" cellspacing="0" cellpadding="0" style="position: absolute; bottom: 0" bgcolor="#00FF00" height="23" bordercolor="#FFFFFF">
            <!-- MSTableType="nolayout" -->
            <tr>
                <td>&nbsp;</td>
            </tr>
        </table>
        <div align="right">
            <table border="1" width="200" align="right" cellspacing="0" cellpadding="0" bgcolor="#FF00FF" height="100%">
                <tr>
                    <td>&nbsp;</td>
                </tr>
                <tr>
                    <td>&nbsp;</td>
                </tr>
                <tr>
                    <td>&nbsp;</td>
                </tr>
            </table>
        </div>
        <p>&nbsp;</p>
        <p>&nbsp;</p>
        <p>&nbsp;</p>
        <p>&nbsp;</p>
        <p>&nbsp;</p>
        <p>&nbsp;</p>
        <p>&nbsp;</p>
        <p>&nbsp;</td>
    </tr>
</table>

</body>

</html>

The table has height="100%" ... so what's the problem?

A: 

You need to change

<div align="right">

to

<div align="right" style="height: 100%;">
Matthew Manela
Thank you very much! Works like a charm.
ranpan
I have one more question.... Let me create a new question for it. Perhaps you could help. Let me post it and link here.. One sec.
ranpan
Here's the link. Basically one table has priority over the other one.... http://stackoverflow.com/questions/3818725/how-do-i-make-the-right-table-have-priority-over-the-top-table
ranpan
Actually... With your code, it makes my green table not stay on the bottom of the page :(
ranpan