<form> design problem

Discussion in 'HTML' started by Maria Sudderman, Jun 27, 2007.

  1. I have a problem!
    Ii have a formular, and after the send button is a blank line.
    can i delete this blank line?

    <table border="1" width="400" cellspacing="0" cellpadding="0"
    style="border-collapse: collapse" bordercolor="#000000">
    <tr>
    <td>
    <form method="POST" action="--WEBBOT-SELF--">
    <input type="text" name="T1" size="20">
    <input type="submit" value="send" name="B1">
    </form>
    </td>
    </tr>
    </table>



    Maria
     
    Maria Sudderman, Jun 27, 2007
    #1
    1. Advertising

  2. Maria Sudderman

    Neredbojias Guest

    On Wed, 27 Jun 2007 16:24:17 GMT Maria Sudderman scribed:

    > I have a problem!
    > Ii have a formular, and after the send button is a blank line.
    > can i delete this blank line?
    >
    > <table border="1" width="400" cellspacing="0" cellpadding="0"
    > style="border-collapse: collapse" bordercolor="#000000">
    > <tr>
    > <td>
    > <form method="POST" action="--WEBBOT-SELF--">
    > <input type="text" name="T1" size="20">
    > <input type="submit" value="send" name="B1">
    > </form>
    > </td>
    > </tr>
    > </table>


    I'd say yah, but why didn't you just try it?

    --
    Neredbojias

    Once I had a little bird
    That made me rather hasty.
    So now I have no little bird,
    But it was very tasty.
     
    Neredbojias, Jun 27, 2007
    #2
    1. Advertising

  3. Maria Sudderman

    rf Guest

    "Maria Sudderman" <> wrote in message
    news:f5u2v3$r7m$02$-online.com...
    >I have a problem!
    > Ii have a formular,


    A form?

    > and after the send button is a blank line.


    No you don't. You have a bottom margin.

    > can i delete this blank line?


    Use CSS to remove the margin.
    form {margin: 0;}

    > <form method="POST" action="--WEBBOT-SELF--">


    Frontpage! All bets are off :)

    --
    Richard.
     
    rf, Jun 28, 2007
    #3
  4. Maria Sudderman

    dorayme Guest

    In article <f5u2v3$r7m$02$-online.com>,
    "Maria Sudderman" <> wrote:

    > I have a problem!
    > Ii have a formular, and after the send button is a blank line.
    > can i delete this blank line?
    >
    > <table border="1" width="400" cellspacing="0" cellpadding="0"
    > style="border-collapse: collapse" bordercolor="#000000">
    > <tr>
    > <td>
    > <form method="POST" action="--WEBBOT-SELF--">
    > <input type="text" name="T1" size="20">
    > <input type="submit" value="send" name="B1">
    > </form>
    > </td>
    > </tr>
    > </table>
    >


    This the sort of effect you want:

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
    "http://www.w3.org/TR/html4/strict.dtd">
    <html>
    <head>
    <title>Test</title>
    <style type="text/css">
    * {margin: 0; padding: 0}
    td {border: 1px solid black}
    table {width: 400px}
    </style>
    </head>
    <body>
    <table><tr><td>
    <form method="POST" action="--WEBBOT-SELF--">
    <div><input type="text" name="T1" size="20">
    <input type="submit" value="send" name="B1"></div>
    </form>
    </td></tr></table>
    </body>
    </html>

    ?

    (You don't need a table for this, try removing all table tags and
    see for yourself)

    --
    dorayme
     
    dorayme, Jun 28, 2007
    #4
  5. "Maria Sudderman" <> wrote in message
    news:f5u2v3$r7m$02$-online.com...
    >I have a problem!
    > Ii have a formular, and after the send button is a blank line.
    > can i delete this blank line?
    >
    > <table border="1" width="400" cellspacing="0" cellpadding="0"
    > style="border-collapse: collapse" bordercolor="#000000">
    > <tr>
    > <td>
    > <form method="POST" action="--WEBBOT-SELF--">
    > <input type="text" name="T1" size="20">
    > <input type="submit" value="send" name="B1">
    > </form>
    > </td>
    > </tr>
    > </table>
    >
    >
    >
    > Maria
    >
    >
    >


    Hi Maria,

    Just move the </form> down two lines so that it is in between the </tr> and
    the </table>.

    Hope that helps

    Andy
     
    Andrew Bailey, Jun 28, 2007
    #5
  6. Maria Sudderman

    dorayme Guest

    In article <7gKgi.4745$%>,
    "Andrew Bailey" <> wrote:

    > Hi Maria,
    >
    > Just move the </form> down two lines so that it is in between the </tr> and
    > the </table>.
    >
    > Hope that helps
    >


    You are kidding, of course... remember, the end does not
    necessarily justify the means.

    --
    dorayme
     
    dorayme, Jun 28, 2007
    #6
  7. Maria Sudderman

    Ben C Guest

    On 2007-06-28, Andrew Bailey <> wrote:
    >
    > "Maria Sudderman" <> wrote in message
    > news:f5u2v3$r7m$02$-online.com...
    >>I have a problem!
    >> Ii have a formular, and after the send button is a blank line.
    >> can i delete this blank line?
    >>
    >> <table border="1" width="400" cellspacing="0" cellpadding="0"
    >> style="border-collapse: collapse" bordercolor="#000000">
    >> <tr>
    >> <td>
    >> <form method="POST" action="--WEBBOT-SELF--">
    >> <input type="text" name="T1" size="20">
    >> <input type="submit" value="send" name="B1">
    >> </form>
    >> </td>
    >> </tr>
    >> </table>
    >>
    >>
    >>
    >> Maria
    >>
    >>
    >>

    >
    > Hi Maria,
    >
    > Just move the </form> down two lines so that it is in between the </tr> and
    > the </table>.


    Whatever you do DON'T do that! It's invalid (and of all forms of
    invalidity, messing up forms and tables is the worst), meaning that it's
    totally unpredictable what different browsers will do with it.

    Just add form { margin: 0; } to the styles, or if you like:

    <form style="margin: 0" method="POST" ...

    etc.

    It seems Firefox gives form a 16px bottom margin by default but not in
    strict mode.

    Always use strict mode. To get strict mode, put this as the first line
    of your document:

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
     
    Ben C, Jun 28, 2007
    #7
  8. Maria Sudderman

    Neredbojias Guest

    On Thu, 28 Jun 2007 08:25:39 GMT Andrew Bailey scribed:

    > Just move the </form> down two lines so that it is in between the
    > </tr> and the </table>.
    >
    > Hope that helps


    Ay chihuahua! You stinking gringo, you do the tango with the mango, don't
    you?

    --
    Neredbojias

    Once I had a little dog
    Who wagged its tail spritely.
    But it walked by the harvestor
    And now is shorter slightly.
     
    Neredbojias, Jun 28, 2007
    #8
  9. Neredbojias wrote:
    > On Thu, 28 Jun 2007 08:25:39 GMT Andrew Bailey scribed:
    >
    >> Just move the </form> down two lines so that it is in between the
    >> </tr> and the </table>.
    >>
    >> Hope that helps

    >
    > Ay chihuahua! You stinking gringo, you do the tango with the mango, don't
    > you?


    "If you're the police, where are your badges?"


    --
    Blinky RLU 297263
    Killing all posts from Google Groups
    The Usenet Improvement Project: http://blinkynet.net/comp/uip5.html
     
    Blinky the Shark, Jun 29, 2007
    #9
  10. Maria Sudderman

    Neredbojias Guest

    On Fri, 29 Jun 2007 01:16:39 GMT Blinky the Shark scribed:

    > Neredbojias wrote:
    >> On Thu, 28 Jun 2007 08:25:39 GMT Andrew Bailey scribed:
    >>
    >>> Just move the </form> down two lines so that it is in between the
    >>> </tr> and the </table>.
    >>>
    >>> Hope that helps

    >>
    >> Ay chihuahua! You stinking gringo, you do the tango with the mango,
    >> don't you?

    >
    > "If you're the police, where are your badges?"


    I'm in the "00" category. We have no badges, just plastic.

    --
    Neredbojias

    Once I had a little dog
    Who wagged its tail spritely.
    But it walked by the harvestor
    And now is shorter slightly.
     
    Neredbojias, Jun 29, 2007
    #10
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. ZackS
    Replies:
    5
    Views:
    6,807
    Just an Illusion
    Jul 9, 2004
  2. Li Zhang
    Replies:
    4
    Views:
    6,089
    softip
    Feb 27, 2009
  3. SpamProof
    Replies:
    3
    Views:
    652
    SpamProof
    Dec 1, 2003
  4. dave
    Replies:
    5
    Views:
    596
    William Brogden
    Jul 17, 2004
  5. rob c
    Replies:
    4
    Views:
    336
    McKirahan
    Dec 30, 2005
Loading...

Share This Page