HTML Tutorial


 Forum HomeForum Home   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
TD Heights and Autostretch
Post new topic   Reply to topic    HTML Help Forum Index -> HTML Table
View previous topic :: View next topic  
Author Message
chinagreenelvis



Joined: 15 Feb 2008
Posts: 4

PostPosted: Fri Feb 15, 2008 8:59 pm     TD Heights and Autostretch Reply with quote

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: 8269
Location: Castle Rock CO USA

PostPosted: Sat Feb 16, 2008 6:04 am     Reply with quote



You might consider less tables. You have
Code:
<td class="top">
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

PostPosted: Sat Feb 16, 2008 7:08 am     . Reply with quote

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

PostPosted: Sat Feb 16, 2008 7:44 am     Reply with quote

Try putting <td height="100%"> in your middle row.

Seems to work in IE 7.
chinagreenelvis



Joined: 15 Feb 2008
Posts: 4

PostPosted: Sat Feb 16, 2008 11:53 am     . Reply with quote

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

PostPosted: Sat Feb 16, 2008 1:05 pm     Reply with quote

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: 8269
Location: Castle Rock CO USA

PostPosted: Sat Feb 16, 2008 3:52 pm     Reply with quote

Unfortunately it has been a long time since I did do anything with tables. But check out International Web Developers Network for maybe some ideas / ways around it.

_________________
Corey
Toll Free Solutions | Mile High Merchant Accounts | Expression Web Blog
madprof



Joined: 26 Jan 2008
Posts: 98

PostPosted: Sun Feb 17, 2008 7:30 am     Reply with quote

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!).
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum Index -> HTML Table All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial