PDA

View Full Version : table height



mince
February 1st, 2005, 07:48 PM
Ive been using html for a while now, but i still dont know how to make tables go all the way to the bottom of the page, as in 100%, nothing sems to work.

Can anyone fill me in on how to do it?

dreeft
February 1st, 2005, 08:17 PM
have you set the page margins to zero?

mince
February 1st, 2005, 08:34 PM
yes, still doesnt work...

bwh2
February 1st, 2005, 09:13 PM
i assume you're using height="100%" in your table tag. use css to set the margins to zero, not the body tag. sometimes the body tag won't work correctly.

MTsoul
February 1st, 2005, 11:23 PM
If you have a <!DOCTYPE> tag set in front of the document, the auto stretch will not work. Use css instead of tables!

Kristopher
February 2nd, 2005, 12:48 AM
Search the foruuummmmmmmssssssss. Man there's a million posts like this already.

mince
February 2nd, 2005, 02:49 AM
thanks for your help, im kinda of a noobie here :P

eilsoe
February 2nd, 2005, 04:43 AM
Check the top of your document, if you have a doctype set there, it won't work... I always get that one (lousy DW), just remove them and voila :)

blackpulp
February 2nd, 2005, 04:49 AM
well you can remove that doctype tag at the very top of the document, but then youre not going to be able to get your page to be standard compliant from what i hear...so your best bet is to ditch the tables all together and go with div tags and css...although even with that i hear that height percentages and even heights all together they are trying to deprecate in the newer standards...height is supposed to be deteremined by the content within the tag...i hate this. it makes it harder for us flash guys to get a movie directly centered...ugh....

good luck with this, i usuaully remove the doctype tag as well, but its really not proper from what ive read.

mince
February 2nd, 2005, 06:07 AM
yes! it worked thanks for that.

ScHAmPi
February 2nd, 2005, 12:57 PM
The problem is in html and CSS, the width is considered fixed but the height is considered unlimited, I read that somewhere. And indeed when you delete the Doctype you can set the height to 100 % but when you want to make your page w3 valid, then you're obliged to use doctype.

slickeye
February 2nd, 2005, 06:23 PM
so what is the advantage of being w3 compliant?

btw good to see you back here bpulp ;)

ScHAmPi
February 3rd, 2005, 03:41 AM
Hmm good question, I guess your site is better supported by all browsers if it's compliant...