Re: HTML/Table - colspan problem

From: Date: Fri, 14 Nov 2003 13:43:23 +0000
Subject: Re: HTML/Table - colspan problem
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-8935@lists.php.net to get a copy of this message
Alain Williams wrote: > 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"); try: $table->setCellContents(0,0,'Existing Promotions', "th"); $table->setCellAttributes(0,0,'colspan="7"'); hth, Klaus > $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 > > -- > PEAR General Mailing List (http://pear.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.pear.general (#8935) next »