dlebowski Posted July 19, 2007 Share Posted July 19, 2007 I cannot figure out why I am getting these huge gaps in between each row that is returned after I run my sql query. Can someone help me out? Thanks. <table> <form action="<? echo "{$_SERVER['PHP_SELF']}?page=$page&SelectDate=$Date&sortby=$sortby" ?>" method="post"><tr> <? echo "<input type='hidden' name='ud_ID' value='$ID'>";?> <? echo "<input type='hidden' name='ud_Payment' value='$Payment'>";?> <TD width="53" height="35"><? echo "<input type='text' size='5' name='ud_LNumber' style='background-color:$color; text-align:center; border-style: solid; border:1px solid black' value='$Number'>";?></td> <TD width="250" height="35"><? echo "<input type='text' size='40' name='ud_LTitle' style='background-color:$color; border:1px solid black' value='$Title'>";?></td> <TD width="78" height="35"><? echo "<input type='text' size='7' name='ud_Price' style='background-color:$color; border:1px solid black; text-align:center' value='$Price'>";?></td> <TD width="60" height="35" align="center"><? echo "<input type='text' size='6' name='ud_Buyer' style='background-color:$color; border:1px solid black; text-align:center' value='$Buyer'>";?></td> <TD width="80" height="35" align="center"> <? echo "<select style='background-color:$color; border:1px solid black;' name='ud_OnlineOnsite'>"; ?> <option value="ONLINE" <? if ($OnlineOnsite == "ONLINE") echo "selected"; ?> >ONLINE</option> <option value="ONSITE" <? if ($OnlineOnsite == "ONSITE") echo "selected"; ?> >ONSITE</option> </select> </td> <TD width="74" height="35" align="center"><? echo "<input type='text' size='9' name='ud_Absentee' style='background-color:$color; border:1px solid black; text-align:center' value='$Absentee'>";?></td> <TD width="65" height="35" align="center"><? echo "<input type='text' size='7' name='ud_Seller' style='background-color:$color; border:1px solid black; text-align:center' value='$Seller'>";?></td> <TD width="72" height="35" align="center"><? echo "<input type='text' size='8' name='SelectDate' style='background-color:$color; border:1px solid black; text-align:center' value='$Date'>";?></td> <td><input value ="UPD" type="Submit" border="0" name="submit1"></td> <td><input value ="DEL" name="submit2" type="Submit"></td></tr></form></table> <td> <? $i++; } ?></td> Link to comment https://forums.phpfreaks.com/topic/60699-solved-space-between-tables-generated-from-array/ Share on other sites More sharing options...
AndyB Posted July 19, 2007 Share Posted July 19, 2007 Put the form opening and closing tags OUTSIDE the table. Throw away all td height tags (there's no such thing - table cells height is determined by content and/or adjacent cell size). If you want to reduce the space between adjacent forms, use CSS to reduce the form element padding/margin. Link to comment https://forums.phpfreaks.com/topic/60699-solved-space-between-tables-generated-from-array/#findComment-301964 Share on other sites More sharing options...
dlebowski Posted July 19, 2007 Author Share Posted July 19, 2007 Thanks for the quick reply. Do i wan this in my css? form{display:inline;margin:0;padding:0;} Link to comment https://forums.phpfreaks.com/topic/60699-solved-space-between-tables-generated-from-array/#findComment-301968 Share on other sites More sharing options...
AndyB Posted July 19, 2007 Share Posted July 19, 2007 looks about right Link to comment https://forums.phpfreaks.com/topic/60699-solved-space-between-tables-generated-from-array/#findComment-301972 Share on other sites More sharing options...
dlebowski Posted July 19, 2007 Author Share Posted July 19, 2007 Well, it's closer. Thanks for your help man! Link to comment https://forums.phpfreaks.com/topic/60699-solved-space-between-tables-generated-from-array/#findComment-302023 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.