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!
height = 100%... OF WHAT?
Post new topic   Reply to topic    HTML Help Forum Index -> HTML Table
View previous topic :: View next topic  
Author Message
BushGates



Joined: 12 Dec 2004
Posts: 3

PostPosted: Sun Dec 12, 2004 8:29 pm     height = 100%... OF WHAT? Reply with quote

Hi,

I've been developing my webpage and ran into the following dillema:
My page works perfectly in Mozilla and FireFox
Opera and IE 6 fail to display it as intended.

(http://homepages.paradise.net.nz/~coolbest)

Basically to sumamrise the problem: i have a table inside of a table. Table thats inside needs to occupy 100% of the height of the parent table. Mozilla and Firefox do it as expected - by setting height = 100% attribute of the table. In case of IE 6 it seems that height = 100% in MS terms is 100% of the availible screen, but not all of the space on the page. Opera just ingnores 100% all together (i'm not too worried about opera - usage stats r against it). But IE is a biggie.

Getting the size of the table to the required height wouldn't scale well in my case. So filling it up with <br> is out.

Am i missing some small detail out somewhere? Or if its just the way that IE does things, how do i get around it?

Please help,
Nick Goloborodko

P.S. i am aware that height attribute is not officially defined in HTML, but...
romeonate



Joined: 16 Dec 2004
Posts: 16

PostPosted: Thu Dec 16, 2004 12:49 pm     Reply with quote

(replied to in another post, but here again for reference)

Hey BushGates..

I often do coding like that.

have a Parent table with Defined Width/Height, with a Sub-Table whos width is 100%.

In IE, it works fine for me, no problems.

In your Table Coding, are you also defining, "Cellspacing" & "cellpadding" ?

I always keep those at zero ( cellspacing="0" cellpadding="0" )
BushGates



Joined: 12 Dec 2004
Posts: 3

PostPosted: Thu Dec 16, 2004 4:23 pm     Reply with quote

romeonate wrote:
(replied to in another post, but here again for reference)

Hey BushGates..

I often do coding like that.

have a Parent table with Defined Width/Height, with a Sub-Table whos width is 100%.

In IE, it works fine for me, no problems.

In your Table Coding, are you also defining, "Cellspacing" & "cellpadding" ?

I always keep those at zero ( cellspacing="0" cellpadding="0" )


Thanks for the reply, i fixed the problemm... Basically its been in 1 line of code at the very top...
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">


And once i have removed it it all worked Sad

Once again, thanks for the help.
Nick
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