Reply to Re: Table Cell height 100% causes scroll??

Your name:

Reply:


Posted by S. Justin Gengo [MCP] on 10/01/57 11:39

Jay,

Have you tried a height of 99%?

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
<jslaybaugh@gmail.com> wrote in message
news:1139499445.353252.109910@g44g2000cwa.googlegroups.com...
> I'm working on an ASP.NET 2.0 application and am having trouble with a
> very simple table layout. Using ASP.NET 2.0 it defaults to XHTML 1.0
> Transitional and I am trying to comply. However, I cannot seem to get
> my table to render properly, so I pulled out all the server controls
> and just made a very simple HTML only page and am having the same
> problem still.
>
> The problem can bee seen in the code below. The top row is 100px high
> and the bottom row is 100% high. The problem comes in that it actually
> creates a table that is 100% + 100px high. This causes vertical
> scroll.
>
> Of course, this doesnt happen if i remove the !DOCTYPE declaration, but
> I would really like to comply to the XHTML standard.
>
> Can anyone help me???
>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
>
> <html xmlns="http://www.w3.org/1999/xhtml"
> style="height:100%;width:100%;margin:0;" >
> <body style="width:100%;height:100%;margin:0;">
> <table style="height:100%;width:100%;" cellpadding="0"
> cellspacing="0" border="1">
> <tr>
> <td style="height:100px;width:100%;">text<br />text<br
> />text</td>
> </tr>
> <tr>
> <td style="height:100%;width:100%;">text</td>
> </tr>
> </table>
> </body>
> </html>
>

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация