onthespot Posted August 17, 2009 Share Posted August 17, 2009 Hey guys, i have 3 tables that I want to align like 1 2 3 at the moment they are 1 2 3 any ideas, here is the code i have <form action="process.php" method="POST" class="style1"> <table width="20%" style='border: 1px dotted;' bgcolor="#eeeeee" cellspacing="0" cellpadding="3"> <tr> <td>Xbox 360 GT:</td> </tr> <tr> <td><input type="text" name="x360gt" value="x360" /></td> <td></td> </tr> <tr><td colspan="2" align="right"> <input type="hidden" name="subedit1" value="1"> <input type="submit" value="Edit Gamertag"></td></tr> </table> </form> <br> <form action="process.php" method="POST" class="style1"> <table width="20%" style='border: 1px dotted;' bgcolor="#eeeeee" cellspacing="0" cellpadding="3"> <tr> <td>PS3 GT:</td> </tr> <tr> <td><input type="text" name="ps3gt" value="ps3" /></td> <td></td> </tr> <tr><td colspan="2" align="right"> <input type="hidden" name="subedit2" value="1"> <input type="submit" value="Edit Gamertag"></td></tr> </table> </form> <br> <form action="process.php" method="POST" class="style1"> <table width="20%" style='border: 1px dotted;' bgcolor="#eeeeee" cellspacing="0" cellpadding="3"> <tr> <td>PC GT:</td> </tr> <tr> <td><input type="text" name="pcgt" value="pc" /></td> <td></td> </tr> <tr><td colspan="2" align="right"> <input type="hidden" name="subedit3" value="1"> <input type="submit" value="Edit Gamertag"></td></tr> </table> </form> Could anyone help me out please Link to comment https://forums.phpfreaks.com/topic/170627-align-tables/ Share on other sites More sharing options...
infiniteacuity Posted August 17, 2009 Share Posted August 17, 2009 Most people will yell at you for not using <div> tags. However, you can create another table around your 3 tables and place each one of those into a separate column tag within the main table row. Link to comment https://forums.phpfreaks.com/topic/170627-align-tables/#findComment-900230 Share on other sites More sharing options...
haku Posted August 18, 2009 Share Posted August 18, 2009 Nested tables are really not good, as they are one of the biggest things that slows down browsers. As to the question, I actually answered the identical question just yesterday! http://www.phpfreaks.com/forums/index.php/topic,265297.0.html Follow the directions in there. Link to comment https://forums.phpfreaks.com/topic/170627-align-tables/#findComment-900670 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.