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; } Link to comment https://forums.phpfreaks.com/topic/76709-turn-off-bold-effect/ 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. Link to comment https://forums.phpfreaks.com/topic/76709-turn-off-bold-effect/#findComment-388340 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.