Re: Text Color

From: Date: Fri, 29 Feb 2008 15:29:42 +0000
Subject: Re: Text Color
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-270737@lists.php.net to get a copy of this message
On Fri, Feb 29, 2008 at 10:21 AM, Jason Pruim <japruim@raoset.com> wrote: > > On Feb 29, 2008, at 10:07 AM, Richard Heyes wrote: > > >>> echo > >>> > >>> "<TR><TD>".$myrow["char_name"]."<TD>".$myrow["char_level"]."<TD>". > >>> > >>> $class["class"]."<TD>".$myrow["kara"]."<TD>". > >>> $myrow["karateam"]."<TD>".$myrow["karasub"]; > >> Either CSS styling or the dreaded HTML "<font color=\"#FF0000\" > >> />".$myrow['char_name']."</font>" tags. > > > > But you should use CSS: > > > > echo '<tr><td style="color: red">' ... > > But if you're going to use CSS.. it would be better for managing it to > do it as a style sheet: > > <style> > .red { > color: red; > } > </style> > > echo '<tr><td class="red">'; > > Just my opinion :) Let's just get all purist and go back to the class="highlight" so we don't find ourselves a year later with a stylesheet that includes .red { color: green; } :-) OK, so it's Friday. Andrew

« previous php.general (#270737) next »