Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > HTML > HTML Code Clinic
| Search | Today's Posts | Mark Forums Read
HTML Code Clinic Do you have some HTML code you'd like to share and get suggestions from others for tweaking or improving it? This discussion is the place.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the HTML Code Clinic 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
  #1 (permalink)  
Old January 16th, 2007, 09:51 PM
Friend of Wrox
 
Join Date: Sep 2003
Location: Mentiri, Muara, Brunei.
Posts: 363
Thanks: 0
Thanked 1 Time in 1 Post
Default Fixed table height and row height

Hi Friends,

    I am designing a table(Sales Invoice). The table header contains Company name, address, invoice no, date, purchaser name. The table properties set are width="90%" height="95%"

All the columns are adjusted to these settings. I want only the body part to extend and the header part should have constant width and height. I mean is how to set a row height to fixed value.

Bcoz i am drawing the table with only outline border. So that invoice will show in entire page.

Thanks in advance


  #2 (permalink)  
Old January 17th, 2007, 06:06 AM
Friend of Wrox
 
Join Date: Oct 2003
Location: colombo, WP, Sri Lanka.
Posts: 479
Thanks: 0
Thanked 3 Times in 3 Posts
Send a message via MSN to surendran Send a message via Yahoo to surendran
Default

hi rajanikrishna,
You better use two tables, inside one table call other one

surendran
(Anything is Possible)
http://ssuren.spaces.msn.com
  #3 (permalink)  
Old January 17th, 2007, 10:35 PM
Friend of Wrox
 
Join Date: Sep 2003
Location: Mentiri, Muara, Brunei.
Posts: 363
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hi Surendran,

   THanks for the reply. Yea, I am using 2 tables. Outer table contains Header info and inner table contains details. When I set outer table height="100%", the header rows are adjusting down accordingly. My details contains only 3 rows.

When I set inner table height="100%", no change in the display.

thanking you

  #4 (permalink)  
Old January 18th, 2007, 12:42 AM
Friend of Wrox
 
Join Date: Oct 2003
Location: colombo, WP, Sri Lanka.
Posts: 479
Thanks: 0
Thanked 3 Times in 3 Posts
Send a message via MSN to surendran Send a message via Yahoo to surendran
Default

hi rajani,
try with this code

<table border="0" cellpadding="0" height="100%" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1">
  <tr>
    <td width="100%" valign="top">
    <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber2">
      <tr>
        <td width="100%">
        <p align="center">header</td>
      </tr>
      <tr>
        <td width="100%">
        <p align="center">details 1</td>
      </tr>
      <tr>
        <td width="100%">
        <p align="center">details 2</td>
      </tr>
      <tr>
        <td width="100%">
        <p align="center">details 3</td>
      </tr>
    </table>
    </td>
  </tr>
  <tr>
    <td width="100%" valign="top">
       </td>
  </tr>
</table>


surendran
(Anything is Possible)
http://ssuren.spaces.msn.com


Similar Threads
Thread Thread Starter Forum Replies Last Post
Adjust row height of gridview wirerider ASP.NET 2.0 Basics 5 February 1st, 2008 07:01 AM
how to set row height(fixed to 1 pixe) in DataGrid yoganand03 General .NET 1 May 5th, 2004 09:46 AM
Row Height aspadda Excel VBA 0 February 25th, 2004 03:48 PM
Change height of div element if < window height JoelJunstrom Javascript How-To 1 October 10th, 2003 09:14 AM
Fixed height cells in tables 12th_Man HTML Code Clinic 1 July 11th, 2003 01:15 AM





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