2.0 height %'s not working

P

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.
 
S

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.
 
A

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 --
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top