Click to See Complete Forum and Search --> : height="100%"


David Harrison
06-08-2003, 02:01 PM
How do I make the minimum height of a table 100% of the page height. I tried height="100%" but it isn't standard so it works on IE but not on netscape (at least not on version 7.02).

David Harrison
06-08-2003, 02:16 PM
I had a feeling I might have to do something like that but I'm not sure how, can you fill me in please?

brendandonhue
06-08-2003, 02:30 PM
If you need the table height to be 100%, its sounds like you are using a table for the layout of the page. This is generally not a good idea, you should use a DIV or SPAN instead.

David Harrison
06-08-2003, 02:34 PM
I can't do that, it's not just for layout otherwise I would have wholeheartedly crossed over to css.
I have a red background color on my page and all of my content centered within 620 px's in the middle of the page as a blue stripe.

Charles
06-08-2003, 02:42 PM
Yes, you are using TABLEs for layout.

pyro
06-08-2003, 04:46 PM
Originally posted by lavalamp
I have a red background color on my page...Which you may want to think about switching...It is very hard on the eyes...

brendandonhue
06-08-2003, 06:03 PM
I think in the table tag, you could add
style="height:100%"

Robert Wellock
06-10-2003, 11:13 AM
Basically tables cannot possess 100% height and fill the canvas according to the Technical Recommendations, although there are script or hack methods.

Also according to the "Cascading Style Sheets, Level 2 revision 1" Working Draft, which few people actually know about : http://www.w3.org/TR/CSS21/ it's debatable whether the table column can have actually have % height set via CSS.

David Harrison
06-10-2003, 04:27 PM
Well thanks for all of you're effort but I've now decided to switch over to CSS (now that I know a little bit more about it), so instead I've found some new bugs, like I can't centre a div tag, oh joy.

spufi
06-10-2003, 06:50 PM
If your <div> tag has inline content than you can define the css for the <div> tag as "text-align:center;" If it has block level content within it, use "margin:0 auto;"

David Harrison
06-11-2003, 02:07 PM
Thank-you so much that works fine but, in "margin:0 auto;" is the 0 really neccesary?

spufi
06-11-2003, 02:28 PM
Well try it out. Maybe it is, maybe it isn't. :D

David Harrison
06-11-2003, 02:47 PM
Well I've only tried it witout on ie 6 so far but that does seem to accept less than perfect code while others sometimes don't, so I really don't know.

By the way, can you get on to the validator in your links in your sig, because I can't.

brendandonhue
06-11-2003, 02:58 PM
I used it yesterday but the validator seems to be down right now.

David Harrison
06-11-2003, 03:00 PM
Does anyone know of any other validators in case something like this happens again?

brendandonhue
06-11-2003, 03:13 PM
Nope, W3C is really THE official validator. It should be back really soon.

Robert Wellock
06-12-2003, 08:58 AM
http://www.mirror.ac.uk/services/validator/