Forum Moderators: open

Message Too Old, No Replies

form expands row unecessarily

         

jackvull

1:26 pm on Jul 30, 2008 (gmt 0)

10+ Year Member



I added a button to the following form but now it has expanded all the rows to double height. Any ideas on how best to stop this as the button doesn't actually take up double the height, it's just white space.


<?
$ctr = 1;
while ($row=mssql_fetch_assoc($result))
{
?>
<tr>
<td style='text-align:left;'><? echo $ctr;?> </td>
<td style='text-align:left;'><? echo $row['ParentGroup'];?> </td>
<td style='text-align:left;'><? echo $row['CompanyName'];?> </td>
<td><? echo FormatCash($row['Turnover']);?> </td>
<td style='text-align:left;'><? echo $row['Description'];?> </td>
<td style='text-align:center;'><? if ($row['TAP'] == 0) {echo "No";} else {echo "Yes";};?> </td>
<td style='text-align:left;'><? echo $row['KAM'];?> </td>
<td><form><input type='hidden' value='<? echo $row['ParentGroup'];?>'>
<input type ='submit' id='profitcentres' name='profitcentres' value='View Profit Centres'>
</form></td>
</tr>
<?
$ctr++;
}
?>

Marshall

3:09 pm on Jul 30, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Try adding to CSS -

form {
margin: 0;
padding: 0;
}

Marshall