HTML/Table - colspan problem
| From: | Alain Williams | Date: | Fri, 14 Nov 2003 13:14:10 +0000 |
| Subject: | HTML/Table - colspan problem | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-8932@lists.php.net to get a copy of this message | ||
Hi,
I want to have a table where the first row of header spans all rows (ie as a 'title').
My code is:
$table = new HTML_Table('border=1 align=center caption="Existing
Promotions"');
$table->addRow(array('Existing Promotions'), "colspan=7",
"TH");
$table->addRow(array('Promo', 'Start', 'End',
'Save', 'Qty', 'Description', 'Number<br>of SKUs'),
"", "TH");
followed by database selects and adding new rows, etc, that all works.
My problem is that the first row ends up entirely over the second row 'Promo' and does not
span all
of the rows. I have tried all sorts of small tweaks, but can't seem to get it to do what I
want.
I would be grateful if someone can tell me what I am doing wrong.
Many thanks.
--
Alain Williams
#include <std_disclaimer.h>
FATHERS-4-JUSTICE - Campaigning for equal rights for parents and the
best interests of our children. See http://www.fathers-4-justice.org