Win a copy of Rust Web Development this week in the Other Languages forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

html alignment question

 
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All!

I have a table that needs to be divided into 2 td's. Like this:

<table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>

<td>
<table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr class="breadcrumbBkgd">
<td>Backout Summary</td>
<td>Backout Id </td>
<td>Description</td>
<td>Status</td>
<td>Record Count</td>
</tr>
</table>
</td>

<td>
<table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr class="breadcrumbBkgd">
<td>Rerun Summary</td>
<td>Rerun Id</td>
<td>Description</td>
<td>Status</td>
<td>Record Count</td>
</tr>
</table>
</td>

</tr>
</table>

My question: One of these td's can have empty columns. That is, if the Backout Summary columns are populated, the Re-run Summary columns "can" be empty. If both are populated, I have no alignment problems. When one of them is empty, the tables are not aligned. How many ever records there are in one table, the other table is so many columns mis-aligned.
How can I fix this problem?
Thanks in advance!
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
set the widths of the tds holding the other table to 50%. That may help.

Eric
 
Sumithab Baskaran
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
changing the widths to 50% did not help.
 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Try putting an   in the empty cell.
 
Denise Hum
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
oops, that was supposed to be the code for an empty space & nbsp;
 
Why is the word "abbreviation" so long? And this ad is so short?
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic