This week's book giveaway is in the Java in General forum.
We're giving away four copies of Helidon Revealed: A Practical Guide to Oracle’s Microservices Framework and have Michael Redlich on-line!
See this thread for details.
  • 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:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

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;
 
Destiny's powerful hand has made the bed of my future. And this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic