2.0 height %'s not working

  • Thread starter Thread starter prefersgolfing
  • Start date Start date
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.
 
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.
 
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

Back
Top