Table with two rows of titles

Giganews Newsgroups
Subject: Table with two rows of titles
Posted by:  Gloops (gloops@zailes.invalid.org)
Date: Thu, 04 Jul 2013

Hello everybody,

To present a table with several rows constituting a command, I have six=20
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,=20
and the second line could detail "unit" and "total".

It is easy to have the "Price" label on a line above the other titles,=20
but I try to have the titles of the other columns about at the level of=20
the separation between the two lines, "Price" being above that level,=20
and "unit" and "total" being under it.

This gives complicated sentences, but I suppose it can be understood by=20
someone who ever saw an invoice in his life.

I tried this, but it does not give good results, the body of the table=20
is getting far wider, so not aligned with the column headers at all.=20
Does anybody have a better idea ? I am going to precise colspan=3D"1" for=
=20
the first columns, but I fear that will not give anything very concrete.

        <thead>
            <tr>
                <th rowspan=3D"2">
                </th>
                <th rowspan=3D"2">
                    lg
                </th>
                <th rowspan=3D"2">
                    Ref.
                </th>
                <th rowspan=3D"2">
                    D=E9signation
                </th>
                <th rowspan=3D"2">
                    Qte
                </th>
                <th rowspan=3D"2" colspan=3D"2">
                <table>
                    <tr>
                        <td colspan=3D"2">Prix</td>
                    </tr>
                    <tr>
                        <td>
                            Unit.
                        </td>
                        <td>
                            Ttl
                        </td>
                    </tr>
                </table>
                </th>
            </tr>
        </thead>

Replies