How to trim break after <form> tag ?

Discussion in 'HTML & Website Design' started by ish1301, Nov 4, 2006.

Thread Status:
Not open for further replies.
  1. #1
    How can i trim break after <form> tag ?

    currently i am using it like

    <table>
    <form>
    <tr>
      <td>....</td>
    </tr>
    </form>
    </table>
    HTML:
    but it violates html standards .. is there any other alternative so i can keep it html standard too .

    thanks in advance !!!
     
    ish1301, Nov 4, 2006 IP
  2. ThisGoatStarves

    ThisGoatStarves Peon

    Messages:
    361
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I don't understand sorry, could you elaborate? I can't see any breaks in there :S
     
    ThisGoatStarves, Nov 5, 2006 IP
  3. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #3
    A table may not have a form as a child. The form must reside in a td, or you should reverse the structure and put the table in the form.

    Both table and form are block level elements and usually have default top and bottom margins, which you can set to zero if you wish.

    If that hasn't covered your issue, you'll need to have a more explicit and lucid description of the problem.

    cheers,

    gary
     
    kk5st, Nov 5, 2006 IP
  4. Colleen

    Colleen Illustrious Member

    Messages:
    6,777
    Likes Received:
    725
    Best Answers:
    1
    Trophy Points:
    430
    #4
    Forms naturally have space around them, to eliminate it, you need to add this to your stylesheet

    form {
    display: inline;
    margin: 0;
    padding: 0;
    }
     
    Colleen, Nov 6, 2006 IP
    ramakrishna p likes this.
  5. ish1301

    ish1301 Banned

    Messages:
    77
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    This is exactly what i am looking for .......... Thanks @Colleen
     
    ish1301, Nov 7, 2006 IP
Thread Status:
Not open for further replies.