Jump to content

<tr> does not seem to work!


jeff5656

Recommended Posts

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.

 

 

 

 

Link to comment
Share on other sites

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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.