strange formatting with forms

N

nkammah

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
 
J

Jon Glazer

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.
 
D

David Dorward

Jon said:
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.
 
J

Jukka K. Korpela

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?
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,021
Latest member
AkilahJaim

Latest Threads

Top