jeff5656 Posted April 3, 2008 Share Posted April 3, 2008 Why on earth doe the cell "Card No." not go to row number 2 and it stays on the same line as "Your name"? I have added a <tr> and it STILL stays on same line. How is this possible? <form id="cin" name="cin" method="post" action=""> <table><tr> <th>Your Name</th> <td><input type="text" name="your_name" /></td> <tr><td></td></tr> <th>Card No.</th> <td><input type="text" name="card_no" id="card_no" /></td> </form> The above code displays Your Name Card No. instead of Your Name Card No. Quote Link to comment Share on other sites More sharing options...
paul2463 Posted April 3, 2008 Share Posted April 3, 2008 I have just checked your code on my local server using firefox and IE7 and both do what you want them to do Your Name Card No. Quote Link to comment Share on other sites More sharing options...
GameYin Posted April 3, 2008 Share Posted April 3, 2008 You never ended the first <tr> I will bold the part you must add. <form id="cin" name="cin" method="post" action=""> <table><tr> <th>Your Name</th> <td><input type="text" name="your_name" /></td>[b]</tr>[/b] <tr><td></td></tr> [i]<tr>[/i]<th>Card No.</th> <td><input type="text" name="card_no" id="card_no" /></td>[i]</tr>[/i] </form> Also, after you have <th>Card no</th>...blah blah blah You never have that in a row. So the italicized part is the part you must add to make it into a new row. Modify if I got it wrong. You aren't coding the tables properly Quote Link to comment Share on other sites More sharing options...
jeff5656 Posted April 3, 2008 Author Share Posted April 3, 2008 Thanks. I found out that when I closed it with </table> it works. Weird that I would nbeed that (at least using dreamweaver's built in view function it was all on one line until I added </table>. Quote Link to comment Share on other sites More sharing options...
jeff5656 Posted April 3, 2008 Author Share Posted April 3, 2008 Oh I didn't see the lack of </tr>. thanks. interesting that if I have </table> I do not need the </tr>! Quote Link to comment Share on other sites More sharing options...
GameYin Posted April 3, 2008 Share Posted April 3, 2008 No problem dude. That's what we are here for 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.