Table = 100% in IE but not in FireFox?

Reply

Join Date: Jun 2004
Posts: 247
Reputation: cmills83 is an unknown quantity at this point 
Solved Threads: 1
cmills83 cmills83 is offline Offline
Posting Whiz in Training

Table = 100% in IE but not in FireFox?

 
0
  #1
Jun 25th, 2005
<< URL Snip -- Please post code only, thanks >>

The table extends to the bottom in IE but not in FireFox, any ideas? Thanks!
Reply With Quote Quick reply to this message  
Join Date: May 2005
Posts: 232
Reputation: Dogtree is an unknown quantity at this point 
Solved Threads: 3
Dogtree's Avatar
Dogtree Dogtree is offline Offline
Posting Whiz in Training

Re: Table = 100% in IE but not in FireFox?

 
0
  #2
Jun 25th, 2005
The height attribute doesn't exist in any portable HTML specification. You're relying on an IE extension. A workable solution is CSS:
HTML and CSS Syntax (Toggle Plain Text)
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  3. <html>
  4. <head>
  5. <style type="text/css">
  6. html,body {
  7. margin:0;
  8. padding:0;
  9. height:100%;
  10. width:100%;
  11. }
  12.  
  13. table.full-height {
  14. height:100%;
  15. width:100%;
  16. border:1px solid black;
  17. }
  18. </style>
  19. </head>
  20. <body>
  21. <table class="full-height"><tbody><tr>
  22. <td>This is a test</td>
  23. </tr></tbody></table>
  24. </body>
  25. </html>
Reply With Quote Quick reply to this message  
Join Date: Jun 2004
Posts: 247
Reputation: cmills83 is an unknown quantity at this point 
Solved Threads: 1
cmills83 cmills83 is offline Offline
Posting Whiz in Training

Re: Table = 100% in IE but not in FireFox?

 
0
  #3
Jun 26th, 2005
I'm afraid you are the man of the year. Thanks again for the help!
Reply With Quote Quick reply to this message  
Join Date: Jun 2007
Posts: 1
Reputation: Rumor is an unknown quantity at this point 
Solved Threads: 0
Rumor Rumor is offline Offline
Newbie Poster

Re: Table = 100% in IE but not in FireFox?

 
0
  #4
Jun 13th, 2007
Originally Posted by Dogtree View Post
The height attribute doesn't exist in any portable HTML specification. You're relying on an IE extension. A workable solution is CSS:
HTML and CSS Syntax (Toggle Plain Text)
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  3. <html>
  4. <head>
  5. <style type="text/css">
  6. html,body {
  7. margin:0;
  8. padding:0;
  9. height:100%;
  10. width:100%;
  11. }
  12.  
  13. table.full-height {
  14. height:100%;
  15. width:100%;
  16. border:1px solid black;
  17. }
  18. </style>
  19. </head>
  20. <body>
  21. <table class="full-height"><tbody><tr>
  22. <td>This is a test</td>
  23. </tr></tbody></table>
  24. </body>
  25. </html>
Hi there,

I used to work this out by a tip I found on the web, similar to this:
I used to apply a class (fullHeight) to the html tag, but this is not valid code for XHTML.
So, while all other browsers parsed my page correctly, ie did not parse it properly when I had the class attribute there.
Then I did what you posted to bypass the invalid code, but again ie parse it wrong.
Is there any case that applying properties to the html object is invalid in any way?
Reply With Quote Quick reply to this message  
Join Date: Jul 2007
Posts: 1
Reputation: MichaelRoof is an unknown quantity at this point 
Solved Threads: 0
MichaelRoof MichaelRoof is offline Offline
Newbie Poster

Re: Table = 100% in IE but not in FireFox?

 
0
  #5
Jul 26th, 2007
Just add the form tag to the previous posting. The reason it is not working could be because the a parent (form) object is not being expanded to 100%. <br>

Try This:

HTML and CSS Syntax (Toggle Plain Text)
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  3. <html>
  4. <head>
  5. <style type="text/css">
  6. html,body, form {
  7. margin:0;
  8. padding:0;
  9. height:100%;
  10. width:100%;
  11. }
  12.  
  13. table.full-height {
  14. height:100%;
  15. width:100%;
  16. border:1px solid black;
  17. }
  18. </style>
  19. </head>
  20. <body>
  21. <table class="full-height"><tbody><tr>
  22. <td>This is a test</td>
  23. </tr></tbody></table>
  24. </body>
  25. </html>
Last edited by MichaelRoof; Jul 26th, 2007 at 2:20 pm.
Reply With Quote Quick reply to this message  
Join Date: Jan 2007
Posts: 3,210
Reputation: MidiMagic has a spectacular aura about MidiMagic has a spectacular aura about 
Solved Threads: 165
MidiMagic's Avatar
MidiMagic MidiMagic is offline Offline
Nearly a Senior Poster

Re: Table = 100% in IE but not in FireFox?

 
0
  #6
Jul 28th, 2007
You are never going to have a screen-filling design for all users, for the simple reason that different computers are set up for different screen settings.

For example, my father still uses 800 X 600 because of his bad vision.
Daylight-saving time uses more gasoline
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the HTML and CSS Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC