Jump to content

Turn Off Bold Effect


Dysan

Recommended Posts

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

.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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.