View Full Version : Having some problems with tables 100% high


Stormx
01-09-2005, 02:48 PM
Hey everyone, well I'm having some problems with making my main table 100% high. It is fine normally, but when I put in my HTML 4.01 Transistional Declaration it ignores the 100% height bit. It does this when I set it using CSS (style="height:100%;") or HTML (height:"100%").

I've been looking into a JavaScript fix, but it seems stupidly long-winded and i'm having problems retreiving the main webpage section of the browser's height.

If anyone can shed some light on either of these two problems, I'd be very gratefull!

Thanks in advance,

Stormx

MaGiCSuN
01-09-2005, 09:44 PM
can you show us the page you are having problems with ?

also it's height="100%" and not height:"100%"
: is for css
= is for HTML

Love,
Mirna

Stormx
01-09-2005, 09:58 PM
Sorry I typed that wrong, I ment to say:

CSS (style="height:100%;") or HTML (height="100%").

http://www.goldenfalcon.net/dd/index3.html

jazzberry
01-09-2005, 10:14 PM
it is at 100% height, it's 100% of the content, not the page (I think that's what you mean...)

Stormx
01-09-2005, 10:29 PM
Hmm I think I understand what you mean, but width doesn't behave this way, and it works fine outside of HTML 4.01 transitional. I want it to be W3C complient.

Stormx
01-09-2005, 11:27 PM
Hey everyone, I fixed it myself! I replaced this declaration:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

With this:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

Only slightly different but still valid, and it fixes the problem! Woo!