User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the HTML and CSS section within the Web Development category of DaniWeb, a massive community of 456,583 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,644 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our HTML and CSS advertiser: Lunarpages Web Hosting
Views: 8601 | Replies: 10
Reply
Join Date: Sep 2006
Posts: 20
Reputation: Mikeish is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 0
Mikeish Mikeish is offline Offline
Newbie Poster

Help Table height: 100%

  #1  
Jan 15th, 2007
Simply put: I want a table to go all the way down to the bottom of the page until I push it farther with content. The catch...

Row 1: 51px
Row 2: 40px
Row 3: Stretchy
Row 4: 20px
Row 5: 40px

I currently have height: 100% for <table> (using CSS) and then height: for the first cell in each row except for row 3.

Works fine in FF but in IE it stretches is out... I think www.themitech.com/IHS/2/index.html shows what I am talking about.


Any suggestions?
THANKS!
--Mike
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Jun 2004
Location: Hemet, CA
Posts: 429
Reputation: FC Jamison is on a distinguished road 
Rep Power: 5
Solved Threads: 18
Colleague
FC Jamison's Avatar
FC Jamison FC Jamison is offline Offline
Posting Pro in Training

Re: Table height: 100%

  #2  
Jan 16th, 2007
It looks good in IE7 on my laptop.
Reply With Quote  
Join Date: Sep 2006
Posts: 20
Reputation: Mikeish is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 0
Mikeish Mikeish is offline Offline
Newbie Poster

Re: Table height: 100%

  #3  
Jan 16th, 2007
Are you serious? www.themitech.com/IHS/2/index.html does?

Read this to see if it is what you see:

at www.themitech.com/IHS/2/index.html you can see it with borders=1 that everything is stretched.

The top should only be as high as Indianola High School logo (which is like 51px or something like that)

The second should have very little white space (like maybe 5px worth) after the gray bar and it's gradient

The Third SHOULD stretch, which is sort of does.

The fourth should only be as high as the gradients but instead it has more yellow color than it should (Rightfully so since I made the BGCOLOR on it yellow)

The fifth should be only as high as the ICSD logo is at the bottom.

In my code I have all of these at the exact pixels that they should be, and Firefox listens to me even if it isn't ethical but IE does not. If I could get this part to work then I'd be in business.

For the moment i have put a background color of the entire page as yellow and taken out the height: 100% so that it bunches up. It doesn't look the greatest but I figure if I have to live with it maybe i can just make sure each page has enough content. You can see what I have done CURRENTLY at http://www.indianola.k12.ia.us/high/new/index.html

I would prefer to get this height figured out.. I mean extremely prefer it, but I dont' have time to deal with it just like I didn't have time to waste getting the CSS to work so I didn't use any tables at all... Hopefully someone knows a good idea, but if not... tough luck.


Thanks!
--Mike
Reply With Quote  
Join Date: Oct 2005
Location: Northampton UK
Posts: 1,142
Reputation: roryt will become famous soon enough roryt will become famous soon enough 
Rep Power: 7
Solved Threads: 9
roryt's Avatar
roryt roryt is offline Offline
Veteran Poster

Re: Table height: 100%

  #4  
Jan 16th, 2007
Have you tried using nested tables and setting the height in them? What your are doing is going to cause a problem because 100% height doesn't really work. You have quite a simple layout so I would say scrap the tables and try and learn some decent coding.
Reply With Quote  
Join Date: Jan 2007
Posts: 2,604
Reputation: MidiMagic is on a distinguished road 
Rep Power: 7
Solved Threads: 119
MidiMagic's Avatar
MidiMagic MidiMagic is offline Offline
Posting Maven

Re: Table height: 100%

  #5  
Jan 24th, 2007
100 percent of WHAT???? I don't know! I'm just a browser. But he's on third.

Web pages don't come in standard heights, and neither do browser windows. Computers with different screen resolutions will have different maximum visible heights (in pixels), and the browser can't know what you mean by 100 percent.

Remember that some LCD screens have lower maximum resolutions than the latest CRTs.

If you want a certain display heignt, you have to set it in inches or centimeters.
Last edited by MidiMagic : Jan 24th, 2007 at 2:42 am. Reason: more
Daylight-saving time uses more gasoline
Reply With Quote  
Join Date: Oct 2005
Location: Northampton UK
Posts: 1,142
Reputation: roryt will become famous soon enough roryt will become famous soon enough 
Rep Power: 7
Solved Threads: 9
roryt's Avatar
roryt roryt is offline Offline
Veteran Poster

Re: Table height: 100%

  #6  
Jan 24th, 2007
Your say that there is no way for it to know the height, however it does know the width but I suppose the fact is that it doesn't.

I would normally set heights in pixels if I was going to set one not inches or centimetres?
Reply With Quote  
Join Date: Jan 2007
Posts: 2,604
Reputation: MidiMagic is on a distinguished road 
Rep Power: 7
Solved Threads: 119
MidiMagic's Avatar
MidiMagic MidiMagic is offline Offline
Posting Maven

Re: Table height: 100%

  #7  
Jan 26th, 2007
Inches and centimeters DO work across different displays, making the final display the same height on any screen. The resolution of the rendering changes to make the display fit the screen.

Pixels makes the final display take up different portions of the screen with different screen settings.

The reason there is no "100 percent" is that some older laptop computers have a scroll function (independent of the browser scroll bar) which allows the screen to have a larger total height than the displayed portion.
Daylight-saving time uses more gasoline
Reply With Quote  
Join Date: Oct 2005
Location: Northampton UK
Posts: 1,142
Reputation: roryt will become famous soon enough roryt will become famous soon enough 
Rep Power: 7
Solved Threads: 9
roryt's Avatar
roryt roryt is offline Offline
Veteran Poster

Re: Table height: 100%

  #8  
Jan 26th, 2007
Originally Posted by MidiMagic View Post
The reason there is no "100 percent" is that some older laptop computers have a scroll function (independent of the browser scroll bar) which allows the screen to have a larger total height than the displayed portion.


I don't understand, could you explain that again and maybe post a screenshot?
Reply With Quote  
Join Date: Jan 2007
Posts: 2,604
Reputation: MidiMagic is on a distinguished road 
Rep Power: 7
Solved Threads: 119
MidiMagic's Avatar
MidiMagic MidiMagic is offline Offline
Posting Maven

Re: Table height: 100%

  #9  
Jan 31st, 2007
.
.
.
.
.
.
That would be hard to do, because I no longer have the laptop.

And a screenshot wouldn't have worked, because the screenshot showed the whole "displayed page", but the laptop display showed only a portion of it at any time. It had buttons to roll the display up and down to see the whole displayed page. They are not the standard buttons for the arrow keys.

The real problem is that HTML doesn't really have a page height setting. You would have to set a container holding the table to have a page height.
Daylight-saving time uses more gasoline
Reply With Quote  
Join Date: Jul 2006
Location: Deptford, London
Posts: 971
Reputation: MattEvans has a spectacular aura about MattEvans has a spectacular aura about 
Rep Power: 5
Solved Threads: 48
Moderator
Featured Poster
MattEvans's Avatar
MattEvans MattEvans is offline Offline
Posting Shark

Re: Table height: 100%

  #10  
Jan 31st, 2007
that's not the reason there's no 100% height.

100% height has existed. it means all of the height in which information is displayed, or in terms of width, 100% of the width in which information is displayed.

some browsers have picked that up as being 100% of the visible window, others have picked it up as being 100% of the size of all of the objects on a page.

Percentages absolutely do not need units, just a qualifier; i.e. 'height'. 100% of the height means the same in pixels, centemeters, or feet. That's part of the usefulness of percentages.

100% of the window is alot more useful than 100% of the height of objects in the window. If you've ever worked in application GUI design, it's much more important to be able to scale an interface for a display without needing to know the size of the space that you have available than to how much of that space you are currently using. Knowing the resolution doesn't help much atall because my browser window might be one tile in a 4 x 4 layout on my desktop.

The best (perhaps only) way to scale to the size of the browser window in later standards (XHTML) is to use hacky Javascript. Heck; Firefox thinks that in XHTML, a body background color should only be aplied to areas with content or when you have a set 'body height' >_< That's being pedantic to the extreme.
Last edited by MattEvans : Jan 31st, 2007 at 3:15 am.
Plato forgot the nullahedron..
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb HTML and CSS Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the HTML and CSS Forum

All times are GMT -4. The time now is 6:26 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC