Wrox Programmer Forums
ASP.NET 1.x and 2.0 Application Design Application design with ASP.NET 1.0, 1.1, and 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.x and 2.0 Application Design section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old August 1st, 2006, 05:34 PM
Authorized User
Join Date: Nov 2005
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default table height in xhtml

Hello vs 2005 works with xhtml 1.0 by defult, I have a table and its height is 100%, but it doesn't display the table in all the space. I have a table like the following:
<table style="height:100%">
  <tr><td height="50px">some text</td></tr>
  <tr><td height="100%">some text</td></tr>
  <tr><td height="50px">some text</td></tr>
It displays the table larger that the window (I think 100% + 100px), I also set the body height to 100%, how can I draw a layout like html 4.0.
Thanks for you help!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Old August 23rd, 2006, 10:46 AM
Friend of Wrox
Join Date: Feb 2006
Posts: 116
Thanks: 0
Thanked 0 Times in 0 Posts

If you are seeing your table as taller than the viewport, then you are likely using IE. If you look at your page in Firefox, you will notice this is not the case.

In IE, the middle table cell is inheriting the height from the table, which is in turn inheriting it's height from the body. I doubt this is the correct behavior. I'm not certain that Firefox's behavior is correct either. Regardless, there is no "height" attribute for the TD tags in XHTML.

In XHTML you're not really supposed to be using tables for layout, but rather DIV's. There are many tutorials on the web for various layouts with DIV's and CSS. It's not easy. Differences between browsers make a table-less layout challenging. I usually have to use quite a few "workarounds" and CSS hacks.

Neil Timmerman
Veris Consulting

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to remove table height msbsam ASP.NET 2.0 Professional 0 June 25th, 2008 01:37 AM
Fixed table height and row height rajanikrishna HTML Code Clinic 3 January 18th, 2007 12:42 AM
Dynamic Columns XHTML Table picasso566 XSLT 1 November 2nd, 2006 08:09 PM
Table column to stretch height on long page nbryson HTML Code Clinic 12 October 19th, 2005 05:12 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.