When I go this as a <p class=""> it has a line from the image to the $text
when I do it as a div then the font is not right....
P.Black10L {
font-family: Arial;
font-size: 10px;
text-align: left;
color: Black;
text-decoration: none; margin-top:0; margin-bottom:0
}
<table class="one">
<tr><td class="six"><p class="White10">In the forums</p></a></td></tr>
<?php
$fcount_rows = 1;
$result3 = mysql_query ("SELECT * FROM forum_thread where main_id <> '13' ORDER BY lastdatestring DESC LIMIT 15");
while ($row3 = mysql_fetch_array($result3)) {
$ThreadID = $row3['thread_id'];
$MainID = $row3['main_id'];
$result = mysql_query ("SELECT * From forum_posts where thread_id = $ThreadID");
$row = mysql_fetch_array($result);
if ($fcount_rows%2==0) {
$row_colour='Color2';
} else {
$row_colour='Color1';
}
?>
<tr>
<?php
echo "<td class=\"$row_colour\">";
?>
<div class="Black10L"></div><img src="http://www.rleague.com/images/n4.gif">
<?php
echo "<a href=\"forums.php?P=PostLists&ThreadID=$ThreadID&MainID=$MainID\">";
$text = $row3['title'];
$maxLength = 40;
if(strlen($text) > $maxLength) {
echo array_shift(explode("\n", wordwrap($text, $maxLength))).'...';
} else {
echo $text;
}
?>
</div></a>
</td>
</tr>
<?php
$fcount_rows++;
}
?>
</table>