Can someone tell me why this CCS class is not working?

drey2k

Power Member
Joined
Jan 4, 2009
Messages
567
Reaction score
174
Hi,

I'm just trying to learn CSS, and for some reason the CSS class I'm trying to use is not working. I'm trying to make the font in the table red...


Can someone tell me what I'm doing wrong?
Thanks


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">

<style type="text/css">
table.one
{
color:red
}
</style>


</head>

<body align=center>

<?php

$dollarsign = '$';
$weeklypay = 700;
$weeksmonth = 4;
$daysmonth = 22;

$monthlypay = ($weeklypay*$weeksmonth);
$dailypay = $monthlypay/$daysmonth;
?>

<center>Calculation of Income</center>

<table style="one" border=1 cellpadding=5 cellspacing=0 align=center bgcolor=grey>

<tr>
<td align=center>Weekly Pay</td>
<td align=center>Weeks Per Month</td>
<td align=center>Monthly Pay</td>
<td align=center>Work Day Pay</td>
</tr>

<tr>
<td align=center><?php echo $dollarsign.$weeklypay ?></td>
<td align=center><?php echo $weeksmonth ?></td>
<td align=center><?php echo $dollarsign.$monthlypay ?></td>
<td align=center><?php echo $dollarsign.$dailypay ?></td>
</tr>

</table>

</body>
</html>
 
I figured it out... stupid me.
 
Back
Top