Dysan Posted November 10, 2007 Share Posted November 10, 2007 How do I turn of bold on line 2, result in line one being in bold, but not line2? echo '<table border="1">'; echo '<tr>'; echo '<th class="Heading">Firstname, Lastname & Sex</th>'; echo '</tr>'; $record = 1; while($row = mysql_fetch_array($result)) { echo '<tr>'; echo '<td class="Line1">' . $record++ . ") " . $row['Firstname'] . '<br>'; echo '<span class="Line2">' . $row['Lastname'] . " (" . $row['Sex'] . ")" . '</span></td>'; echo '</tr>'; } echo "</table>"; .Heading { FONT-SIZE: 8pt; FONT-FAMILY: Verdana; FONT-WEIGHT: bold; } .Line1 { FONT-SIZE: 8pt; FONT-FAMILY: Verdana; FONT-WEIGHT: bold; color: green; } .Line2 { FONT-SIZE: 8pt; FONT-FAMILY: Verdana; FONT-WEIGHT: none; color: red; } Quote Link to comment Share on other sites More sharing options...
phpQuestioner Posted November 10, 2007 Share Posted November 10, 2007 .Heading { FONT-SIZE: 8pt; FONT-FAMILY: Verdana; FONT-WEIGHT: bold; } .Line1 { FONT-SIZE: 8pt; FONT-FAMILY: Verdana; FONT-WEIGHT: bold; color: green; } .Line2 { FONT-SIZE: 8pt; FONT-FAMILY: Verdana; FONT-WEIGHT: normal; color: red; } Also, it seems like these problems are CSS based and not PHP - this forums is probably what your looking for: http://www.phpfreaks.com/forums/index.php/board,5.0.html. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.