I want to have a background color for Category heading and white background for the description of that category.
This is my code I tried many things and I cant get it right. Right now I have background for the cell in the table. both header and description appear in the same cell so both have same background.
take a look at cgi-resources main page this is how I want the background color for my categories
http://www.cgi-resources.com/
$output .= qq|<td width="50%" valign="top" ><dl><dt><strong><font face="Verdana, Arial, Helvetica" size="2"><a class="link" href="$url">$category_name</a></strong></font> <small class="numlinks">($numlinks)</small> |;
$output .= qq|<small><sup class="new">new</sup></small></td>| if (&days_old($mod) < $db_new_cutoff);
$output .= qq|</dt>|;
$output .= qq|<dd> <span class="descript"><font face="Verdana, Arial, Helvetica" size="1">$description </font></span></dd>| if (!($description =~ /^[\s\n]*$/));
$output .= qq|</dl></td>|;
This is my code I tried many things and I cant get it right. Right now I have background for the cell in the table. both header and description appear in the same cell so both have same background.
take a look at cgi-resources main page this is how I want the background color for my categories
http://www.cgi-resources.com/
$output .= qq|<td width="50%" valign="top" ><dl><dt><strong><font face="Verdana, Arial, Helvetica" size="2"><a class="link" href="$url">$category_name</a></strong></font> <small class="numlinks">($numlinks)</small> |;
$output .= qq|<small><sup class="new">new</sup></small></td>| if (&days_old($mod) < $db_new_cutoff);
$output .= qq|</dt>|;
$output .= qq|<dd> <span class="descript"><font face="Verdana, Arial, Helvetica" size="1">$description </font></span></dd>| if (!($description =~ /^[\s\n]*$/));
$output .= qq|</dl></td>|;