tracy Posted November 16, 2006 Share Posted November 16, 2006 I have a table that I use in a browser to allow 'browsers' to fill in the blanks. I wonder how I can make all the entry blank cells in that table align together? In other words, say that one blank to fill in is Make: __________ as in automobile maker. The next line underneath that is Auto Model: __________. They don't align properly because Make has four letters and Auto Model has ten with the space included. How can I make the blank text boxes (to be filled in by browser) align underneath each other or at least format the table so that this works out that way? Thanks. Quote Link to comment Share on other sites More sharing options...
fenway Posted November 16, 2006 Share Posted November 16, 2006 Well, if you made enough columns, the table layout will do this for you; otherwise, you'll have to pad it yourself, which won't work anyway unless you have fixed-width fonts. Quote Link to comment Share on other sites More sharing options...
tracy Posted November 20, 2006 Author Share Posted November 20, 2006 Are you saying that the table, in its ordinary creation, will take into account the longest item and size all cells in that column correctly so that the other column, the blank one, is lined up as I desire? The reason I ask is that I did this before and it didn't work. I made the table using php/mysql and it printed it with the items lined up on the left margin and the 'fill in the blanks' boxes were all over the place. Here is the code:<html><title>Test Self Form</title><body><form action="insert.php" method="post">Make: <input type="text" name="make" /><br></br>Auto Model: <input type="text" name="model" /><br></br><input type="submit" /></form></body></html>Thanks. Quote Link to comment Share on other sites More sharing options...
AndyB Posted November 20, 2006 Share Posted November 20, 2006 [code]<form action="insert.php" method="post"><table><tr><td>Make:</td><td><input type="text" name="make" /></td></tr><tr><td>Auto Model:</td></td><input type="text" name="model" /></td></tr></table><input type="submit" /></form>[/code]Why not like that? Quote Link to comment Share on other sites More sharing options...
tracy Posted November 21, 2006 Author Share Posted November 21, 2006 Somehow when I uploaded a test page it put the box on top of the text on the first line only. I fixed it. Looks good. Thanks.By the way, since you have all those stars by your name...Can you recommend a good tutorial on how to incorporate a check box into a MySQL/PHP table so that if I want to edit or delete a file I can select that file by clicking in the check box beside it (in a browser, not MySQL) and click on edit or delete and be take to the appropriate screen. Not looking for an easy code supply, just the info so I can learn how to do it. I have found a lot of info, but in trying to think of how to select the item in the database using a true/false statement from a checkbox...it's kind of hard with my being new to PHP. I have a thread open on this somewhere but no luck. Only people telling me to buy and read a PHP book...I have researched this online and in books (2) but no luck.Thanks. Quote Link to comment 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.