Posted by Jonathan N. Little on 03/12/06 21:51
Toby Inkster wrote:
<snip>
> How about something like this?
>
> print "<table>\n";
> while ($row = mysql_fetch_row($result))
> {
> $class = ($class=='a')?'b':'a';
> $line = implode('</td><td>', $row);
> $line = "<tr class=\"$class\"><td>$line</td></tr>\n";
print $line;
> }
> print "</table>\n";
>
> with this:
>
> <style type="text/css">
> TABLE { border: 2px solid; border-collpase: collapse; }
> TR.a TD { color: black; background: #eee; border: 1px solid; }
<strike> TR.c TD { color: black; background: #ffd; border: 1px solid;
}</strike>
TR.b TD { color: black; background: #ffd; border: 1px solid; }
> </style>
>
Small tweaks ;-)
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
[Back to original message]
|