strange formatting with forms

Discussion in 'HTML' started by nkammah@yahoo.fr, Jul 31, 2006.

  1. Guest

    Hi,

    I have strange formatting with forms ( unfortunatly i don't have the
    code here), but it is something like

    <form ...
    <input type="hidden" ...
    <img value ="submit"...
    </form>

    <form ...
    <input type="hidden" ...
    <img value ="submit"...
    </form>

    <form ...
    <input type="hidden" ...
    <img value ="submit"...
    </form>

    I have a huge line height between my 2 small pictures, and I cannot
    make the line-height properties work. I cannot align the 2 buttons as
    well ( and I need to use 2 seperates forms for scripting purposes)...

    Any idea?

    I am not familiar at all with forms, and I just started with css.

    Thank you

    Nassim
     
    , Jul 31, 2006
    #1
    1. Advertising

  2. Jon Glazer Guest

    The </form> tag has a tendancy to put a blank line in places you don't want.
    So I typically "embed" the <form> and </form> tags inside a table. Ie:

    <table><form><tr><td>
    ...
    ...
    ...
    </td></tr></form></table>

    Not pretty but it does work.

    <> wrote in message
    news:...
    > Hi,
    >
    > I have strange formatting with forms ( unfortunatly i don't have the
    > code here), but it is something like
    >
    > <form ...
    > <input type="hidden" ...
    > <img value ="submit"...
    > </form>
    >
    > <form ...
    > <input type="hidden" ...
    > <img value ="submit"...
    > </form>
    >
    > <form ...
    > <input type="hidden" ...
    > <img value ="submit"...
    > </form>
    >
    > I have a huge line height between my 2 small pictures, and I cannot
    > make the line-height properties work. I cannot align the 2 buttons as
    > well ( and I need to use 2 seperates forms for scripting purposes)...
    >
    > Any idea?
    >
    > I am not familiar at all with forms, and I just started with css.
    >
    > Thank you
    >
    > Nassim
    >
     
    Jon Glazer, Jul 31, 2006
    #2
    1. Advertising

  3. Jon Glazer wrote:

    > The </form> tag has a tendancy to put a blank line in places you don't
    > want.


    Not if you style away margins or put it inline.

    > So I typically "embed" the <form> and </form> tags inside a table. Ie:
    >
    > <table><form><tr><td>


    Invalid

    > Not pretty but it does work.


    Depending on the ability of the browser to correct your errors is a really
    bad idea - especially in this case given how different browsers cope with
    elements not allowed inside tables.

    --
    David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
    Home is where the ~/.bashrc is
     
    David Dorward, Jul 31, 2006
    #3
  4. <> scripsit:

    > I have strange formatting with forms ( unfortunatly i don't have the
    > code here), but it is something like


    Do you expect to get a useful answer to such a vague question? Please set up
    a page that demonstrates the real problem that you have. Add a verbal
    explanation if needed.

    > <form ...
    > <input type="hidden" ...
    > <img value ="submit"...
    > </form>
    >
    > <form ...
    > <input type="hidden" ...
    > <img value ="submit"...
    > </form>


    What are you trying to accomplish? With this markup, you have consecutive
    forms that cannot be submitted, and you have invalid markup (<img> must not
    value a value="..." attribute). Why are using forms in the first place, and
    why _several_ forms? With no actual user input?

    --
    Jukka K. Korpela ("Yucca")
    http://www.cs.tut.fi/~jkorpela/
     
    Jukka K. Korpela, Aug 1, 2006
    #4
    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. Frigett

    forms and table formatting

    Frigett, Jul 30, 2004, in forum: HTML
    Replies:
    1
    Views:
    436
    Adrienne
    Aug 1, 2004
  2. clumsy_ninja

    Problem formatting forms w/ floats

    clumsy_ninja, Feb 16, 2008, in forum: HTML
    Replies:
    2
    Views:
    409
    Jukka K. Korpela
    Feb 17, 2008
  3. Eric
    Replies:
    2
    Views:
    645
  4. Tonio Tanzi
    Replies:
    0
    Views:
    137
    Tonio Tanzi
    Jan 8, 2006
  5. sjp

    Strange string formatting error

    sjp, Dec 2, 2005, in forum: Perl Misc
    Replies:
    3
    Views:
    104
    Joe Smith
    Dec 4, 2005
Loading...

Share This Page