| View previous topic :: View next topic |
| Author |
Message |
chinagreenelvis
Joined: 15 Feb 2008 Posts: 4
|
Posted: Fri Feb 15, 2008 8:59 pm TD Heights and Autostretch |
|
|
|
I'm trying to figure out why my page displays correctly in Firefox but incorrectly in IE.
The URL is http://www.maryhates.com/test.php
Thanks. |
|
Corey Bryant Site Admin

Joined: 15 May 2004 Posts: 8313 Location: Castle Pines North, CO USA
|
Posted: Sat Feb 16, 2008 6:04 am |
|
|
|
You might consider less tables. You have
and in this you specified a height
| Code: |
.top {
height: 70px;
background-color: #FFFFFF;
} |
So that would be 70px. In the <table> you have
| Code: |
| <table width="100" border="0" cellpadding="0" cellspacing="0" bgcolor="#0066CC" id="left"> |
with
| Code: |
#left {
height: 100%;
width: 100px;
} |
Chances are the browser is showing 70 pixels in height and the table is expanding to that 70 pixels.
_________________
Corey
Toll Free Solutions | Mile High Merchant Accounts | Expression Web Blog |
|
chinagreenelvis
Joined: 15 Feb 2008 Posts: 4
|
Posted: Sat Feb 16, 2008 7:08 am . |
|
|
|
Nope. That table is in the second <tr> tag, not the first. Even when I remove the #left table, the top and bottom table rows fail to display at their intended heights. Again, this is only in IE. I have yet to look at it in Netscape.
http://www.maryhates.com/test.php |
|
madprof
Joined: 26 Jan 2008 Posts: 98
|
Posted: Sat Feb 16, 2008 7:44 am |
|
|
|
Try putting <td height="100%"> in your middle row.
Seems to work in IE 7. |
|
chinagreenelvis
Joined: 15 Feb 2008 Posts: 4
|
Posted: Sat Feb 16, 2008 11:53 am . |
|
|
|
| In IE6 it makes the middle TD the height of the browser window, pushing the table off the page and forcing you to scroll down to see the bottom. Does it not do this in IE7? |
|
chinagreenelvis
Joined: 15 Feb 2008 Posts: 4
|
Posted: Sat Feb 16, 2008 1:05 pm |
|
|
|
I checked it out in IE7 and the middle TD behaves the same way as in IE6.
I guess the only solution I have is to do things the old school way, the way that works best, and that's to say, "screw you, doctype..." |
|
Corey Bryant Site Admin

Joined: 15 May 2004 Posts: 8313 Location: Castle Pines North, CO USA
|
|
madprof
Joined: 26 Jan 2008 Posts: 98
|
Posted: Sun Feb 17, 2008 7:30 am |
|
|
|
The real solution should be not to use tables at all but use CSS.
I assume that the footer here is to go at the bottom of the page even if there is no scrollbar, so when content does not fill the full height of the middle area the footer just stays down. In that case then yes I think you do have to keep the browser in quirks mode, which is a real pain for some things (like consistency between browsers!). |
|
|