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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.