Re: Change cell colour with selection from a drop down menu

From: Date: Tue, 30 Sep 2003 06:22:42 +0000
Subject: Re: Change cell colour with selection from a drop down menu
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-164338@lists.php.net to get a copy of this message
Cristian Lavaque wrote: > > You'd use CSS for that. Create a class for each color you want to > give as options. In each cell tag add a var that'll be the class > for that cell, like "<td class=<?=cell01;?>>" and you'd assign > the color to that variable using the dropdown menu. To select the > cells, you could probably put a checkbox in each cell, so that > the checked cells will be the ones assigned the color you choose. > I think it could work, never done it myself yet, though ;) > > Cristian sorry, I wrote that code wrong, missed the $ <td class=<?=$cell01;?>> Cristian

« previous php.general (#164338) next »