stilllwaiting
Programmer
Here's my situation.
I have a table with 3 cells.
Top left contains my logo. Top right contains navigation.
Bottom has a colspan of 2 and contains the site content.
The logo has a specific width. I specify in the cell that I'd like the cell to be the exact same size as the image.
I want the table to fill the page entirely, and the cell on the right to take up the slack.
This is the basic template that fits around the rest of my website. The top 2 cells stay the same, while the bottom area changes from page to page.
Here is my code.
This works 95% of the time.
Here's my problem:
On some pages, (usually when the page has a lot of content in nested tables), IE will force the page to be about 110% the size of my screen...even if there's more than enough room for all the content to fit on the screen.
This problem goes away when I remove the style="width:100%;" However, then the cell that holds the logo extends too far to the right and my navigation (not shown) does not display correctly.
Does anyone know a way to force that top right cell to fill the width of the page without forcing the page to be larger than my screen?
Any input would be greatly appriciated.
I have a table with 3 cells.
Top left contains my logo. Top right contains navigation.
Bottom has a colspan of 2 and contains the site content.
The logo has a specific width. I specify in the cell that I'd like the cell to be the exact same size as the image.
I want the table to fill the page entirely, and the cell on the right to take up the slack.
This is the basic template that fits around the rest of my website. The top 2 cells stay the same, while the bottom area changes from page to page.
Here is my code.
Code:
<table id="u_table" width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="290" height="100" background="images/logo1-bg.jpg"><a href="index.cfm" title="blah blah blah"><img src="images/logo.gif" width="290" height="99" border="0"></a></td>
<td style="width:100%;">
<!-- problem happens in line above-->
</td>
</tr>
<tr>
<td colspan="2">
</td>
</tr>
</table>
This works 95% of the time.
Here's my problem:
On some pages, (usually when the page has a lot of content in nested tables), IE will force the page to be about 110% the size of my screen...even if there's more than enough room for all the content to fit on the screen.
This problem goes away when I remove the style="width:100%;" However, then the cell that holds the logo extends too far to the right and my navigation (not shown) does not display correctly.
Does anyone know a way to force that top right cell to fill the width of the page without forcing the page to be larger than my screen?
Any input would be greatly appriciated.