Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Web Programming > HTML > HTML Code Clinic
Password Reminder
Register
| FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #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


Reply With Quote
  #2 (permalink)  
Old January 17th, 2007, 06:06 AM
Friend of Wrox
 
Join Date: Oct 2003
Location: colombo, WP, Sri Lanka.
Posts: 481
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
Reply With Quote
  #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

Reply With Quote
  #4 (permalink)  
Old January 18th, 2007, 12:42 AM
Friend of Wrox
 
Join Date: Oct 2003
Location: colombo, WP, Sri Lanka.
Posts: 481
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
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 08:51 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.