G
Gloops
Hello everybody,
To present a table with several rows constituting a command, I have six
columns, the two last ones are columns of prices : unit price, and total
price.
So, I feel it could be nice to write "Price" on a first line of title,
and the second line could detail "unit" and "total".
It is easy to have the "Price" label on a line above the other titles,
but I try to have the titles of the other columns about at the level of
the separation between the two lines, "Price" being above that level,
and "unit" and "total" being under it.
This gives complicated sentences, but I suppose it can be understood by
someone who ever saw an invoice in his life.
I tried this, but it does not give good results, the body of the table
is getting far wider, so not aligned with the column headers at all.
Does anybody have a better idea ? I am going to precise colspan="1" for
the first columns, but I fear that will not give anything very concrete.
<thead>
<tr>
<th rowspan="2">
</th>
<th rowspan="2">
lg
</th>
<th rowspan="2">
Ref.
</th>
<th rowspan="2">
Désignation
</th>
<th rowspan="2">
Qte
</th>
<th rowspan="2" colspan="2">
<table>
<tr>
<td colspan="2">Prix</td>
</tr>
<tr>
<td>
Unit.
</td>
<td>
Ttl
</td>
</tr>
</table>
</th>
</tr>
</thead>
To present a table with several rows constituting a command, I have six
columns, the two last ones are columns of prices : unit price, and total
price.
So, I feel it could be nice to write "Price" on a first line of title,
and the second line could detail "unit" and "total".
It is easy to have the "Price" label on a line above the other titles,
but I try to have the titles of the other columns about at the level of
the separation between the two lines, "Price" being above that level,
and "unit" and "total" being under it.
This gives complicated sentences, but I suppose it can be understood by
someone who ever saw an invoice in his life.
I tried this, but it does not give good results, the body of the table
is getting far wider, so not aligned with the column headers at all.
Does anybody have a better idea ? I am going to precise colspan="1" for
the first columns, but I fear that will not give anything very concrete.
<thead>
<tr>
<th rowspan="2">
</th>
<th rowspan="2">
lg
</th>
<th rowspan="2">
Ref.
</th>
<th rowspan="2">
Désignation
</th>
<th rowspan="2">
Qte
</th>
<th rowspan="2" colspan="2">
<table>
<tr>
<td colspan="2">Prix</td>
</tr>
<tr>
<td>
Unit.
</td>
<td>
Ttl
</td>
</tr>
</table>
</th>
</tr>
</thead>