Web Layout
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsWeb DesignWeb Layout

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
Free Web 2.0 Code Generator! Generate data entry and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
  #1  
Old December 12th, 2004, 10:38 PM
BushGates BushGates is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Posts: 4 BushGates User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 m 15 sec
Reputation Power: 0
Angry height = 100%... OF WHAT?

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...

Reply With Quote
  #2  
Old December 13th, 2004, 11:34 AM
kakarottt kakarottt is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 63 kakarottt User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 6 m 9 sec
Reputation Power: 4
looks 100% the same in both mozilla and ie6 on my machine..

Reply With Quote
  #3  
Old December 15th, 2004, 01:12 PM
A2k's Avatar
A2k A2k is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Posts: 166 A2k User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 18 h 44 m 10 sec
Reputation Power: 4
I think you'll find that netscape also ignores height="100%" as well.

You might try:

<table style="height=100%;">

this should work for most browsers. But don't hold me to that!

Reply With Quote
  #4  
Old December 16th, 2004, 12:46 AM
shamrog12's Avatar
shamrog12 shamrog12 is offline
Newton's Apple Wizard
ASP Free Intermediate (1500 - 1999 posts)
 
Join Date: Nov 2003
Location: Los Angeles
Posts: 1,661 shamrog12 User rank is Sergeant Major (2000 - 5000 Reputation Level)shamrog12 User rank is Sergeant Major (2000 - 5000 Reputation Level)shamrog12 User rank is Sergeant Major (2000 - 5000 Reputation Level)shamrog12 User rank is Sergeant Major (2000 - 5000 Reputation Level)shamrog12 User rank is Sergeant Major (2000 - 5000 Reputation Level)shamrog12 User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 3 Weeks 2 Days 2 h 35 m 11 sec
Reputation Power: 34
Send a message via AIM to shamrog12
height is working for less and less browsers. Height as a fixed height should still work but yeah, as a percentage, not really gonna happen. You can however maniplate the height using javascript so all it has to do is do a little screen height detection and dynamically size your table accordingly.
__________________
If you found a post of mine helpful, please click on the on my post to add to my reputation.


Reply With Quote
  #5  
Old December 16th, 2004, 04:45 PM
roughneck82 roughneck82 is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Location: Tejas
Posts: 63 roughneck82 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 32 m 5 sec
Reputation Power: 4
Also since you are wanting to achieve the 100% of height of the table inside a table, you should make the cell ( <TD> ) that the table is in the height you want it to be otherwise it has nothing to be 100% of

Reply With Quote
  #6  
Old December 16th, 2004, 06:29 PM
BushGates BushGates is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Posts: 4 BushGates User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 m 15 sec
Reputation Power: 0
Quote:
Originally Posted by A2k
I think you'll find that netscape also ignores height="100%" as well.

You might try:

<table style="height=100%;">

this should work for most browsers. But don't hold me to that!


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" "<A href="http://www.w3.org/TR/html4/loose.dtd">[/code">http://www.w3.org/TR/html4/loose.dtd">


And once i have removed it it all worked

Once again, thanks for the help.
Nick

Reply With Quote
  #7  
Old January 11th, 2005, 05:56 AM
Phoenix's Avatar
Phoenix Phoenix is offline
Web-Standards Evangelist
ASP Free Intermediate (1500 - 1999 posts)
 
Join Date: Nov 2003
Posts: 1,522 Phoenix User rank is Corporal (100 - 500 Reputation Level)Phoenix User rank is Corporal (100 - 500 Reputation Level)Phoenix User rank is Corporal (100 - 500 Reputation Level)Phoenix User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 Days 23 h 48 m 4 sec
Reputation Power: 8
Tables arn't meant to layout web-pages.

By defintion, a web-page canvas has finite width and infinite height. Hence why "height" isn't an attribute of the <table> element in ANY HTML spec.

...Since you removed the DTD, UA's have no idea what version of HTML you used to create the page, and so fall-back on their "lets make this uber-invalid code work" code, which "just works" for you, but it also reinforces bad design techniques.

Learn CSS2.1 and XHTML1.1, Its so much easier that way

Reply With Quote
Reply

Viewing: ASP Free ForumsWeb DesignWeb Layout > height = 100%... OF WHAT?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway