Page 1 of 1

PHP Code To Change Font Color in Table Cell

Posted: Fri Oct 30, 2009 6:50 pm
by mcubedma
I would appreciate help with the following snippet of my php code. I am just trying to change the font size in the row marked in red. The color is white, but I am unable to make the font larger.

Thank you very much.

Code: Select all

            
echo "<table>
<tr>
<th></th>
</tr>";
while($row = mysql_fetch_array($result))
{
echo "<tr>";
[color=#BF0000]echo "<td> <font color=#FFFFFF>" . $row['text'] . "</font> </td>";[/color]
echo "</tr>";
}
echo "</table>";
 

Re: PHP Code To Change Font Color in Table Cell

Posted: Fri Oct 30, 2009 8:36 pm
by requinix
Use CSS to do this. <font> is ugly and stupid.

Here is a place to start.

Re: PHP Code To Change Font Color in Table Cell

Posted: Sat Oct 31, 2009 9:24 am
by Mirge
tasairis wrote:Use CSS to do this. <font> is ugly and stupid.

Here is a place to start.
I have to admit, that's the first time I've seen anybody use a <font> tag in a LONG time... :drunk:

Resolved: PHP Code To Change Font Color in Table Cell

Posted: Sat Oct 31, 2009 11:42 am
by mcubedma
I usually would, but it's not my website. I'm making a change for a friend and it's all in html. Anyway, I'm all set.