Re: Text Color

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Feb 29, 2008 at 10:21 AM, Jason Pruim <japruim@xxxxxxxxxx> 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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux