Baabu Posted March 6, 2008 Share Posted March 6, 2008 <table width="100%" align="center"> <tr bgcolor="#FFd600"> <td width="10%">Trade Mark</td> <td width="10%">Type</td> <td width="10%">Model</td> <td width="10%">Unit Price</td> <td width="10%">Quantity</td> <td width="10%">Sale Price</td> <td width="10%">Profit</td> <td width="10%">Orignal Cost</td> <td width="10%">Sold Items</td> </tr> <?php while(($row=mysql_fetch_array($result))) { ?> <tr bgcolor="#CCCCCC"> <td width="10%"><?php echo $row["type"];?></td> <td width="10%"><?php echo $row["model"];?></td> <td width="10%"><?php echo $row["unitprice"];?></td> <?php //echo $row["code"]; //this displays the all the values present in the Database for the particular category ?> <td width="10%">0</td> <td width="10%"> <form action="admin_update.php" method="get"> <input type="text" name="qty" size="2" value="<?php echo $row["qty"]?>"> <input type="hidden" name="model" value="<?php echo $row["model"];?>"> <input type="hidden" name="type" value="<?php echo $row["type"];?>"> <input type="hidden" name="code" value="<?php echo $row["code"];?>"> <input type="hidden" name="link" value="add_charger.php"> <input type="submit" value="update"> </form> <td width="10%"><a href="admin_rem.php?action=remove_item&type=<?php echo $row['type'];?>&model=<?php echo $row['model'];?>&code=<?php echo $row["code"];?>">Remove</a></td> <td width="10%">0</td> <td width="10%">0</td> <td width="10%">0</td> </td> <!-- Html Tag to Add the Element to The Invoice--> </tr> <? } ?> </table> well every thing is working fine i want this table size to look nice n precise on the screen any suggestions?? as u can see the tables have quite large height i want to fix that Quote Link to comment https://forums.phpfreaks.com/topic/94683-tables-help-needed/ Share on other sites More sharing options...
soycharliente Posted March 6, 2008 Share Posted March 6, 2008 The reasons is because you have the input box and the submit button wrapping to a second line. Defining each cell to have the same percentage will make all cells the same height if one has to grow vertically. Quote Link to comment https://forums.phpfreaks.com/topic/94683-tables-help-needed/#findComment-485429 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.