Home All Groups Group Topic Archive Search About

2.0 height %'s not working

Author
22 Dec 2005 12:59 PM
prefersgolfing
I like to use %'s when laying out tables. In the source (.aspx or .htm) I'll
enter:
<table width=100% height=100%>

<tr  height=50%><td width=50%></td><td></td></tr>

<tr height=50%><td width=50%></td><td></td></tr>

</table>

The page will render as band at the top. Appearantly disregarding the height
entries; the widths are accurate The page presents as expected in the
Designer.

Am I missing something here? Must all heights be px based? Thanks.

Author
22 Dec 2005 1:16 PM
Showjumper
Hieghts for tables are not valid html attributes. What validation doctype
are you using for you pages? If in xhtml try switiching to IE6 and see if
that helps.
Show quoteHide quote
"prefersgolfing" <prefersgolf***@hotmail.com> wrote in message
news:eJteIevBGHA.3896@TK2MSFTNGP09.phx.gbl...
>I like to use %'s when laying out tables. In the source (.aspx or .htm)
>I'll enter:
> <table width=100% height=100%>
>
> <tr  height=50%><td width=50%></td><td></td></tr>
>
> <tr height=50%><td width=50%></td><td></td></tr>
>
> </table>
>
> The page will render as band at the top. Appearantly disregarding the
> height entries; the widths are accurate The page presents as expected in
> the Designer.
>
> Am I missing something here? Must all heights be px based? Thanks.
>
>
Are all your drivers up to date? click for free checkup

Author
22 Dec 2005 4:28 PM
addup
I agree with Showjumper, this is not a good idea

My crystal ball says you *are* using IE6 and you are probably using a
doctype that put's IE into CSS1Compat mode

My my crystal ball's right - try adding
style="height:100%;"
to your <BODY> tag

i.e.

<BODY style="height:100%;">

a pure CSS approach may be a better long-term solution

Hope this helps
-- addup --
Author
22 Dec 2005 4:30 PM
addup
My my crystal ball's right = If my crystal ball...

Bookmark and Share