Forum Moderators: open

Message Too Old, No Replies

why does <form> insertion mess up alignment?

         

futureknight

12:41 pm on Jul 22, 2004 (gmt 0)

10+ Year Member



I'm curious, how come the placement of the form declaration upsets my alignment of images? I already had the input field inserted into the proper place, but then I noticed that the image I'm using for my submit button was above (ie, outside) the form declaration. I moved the form declaration into a different cell (therefore putting my submit image inside the form), but now my carefully aligned top images are off a bit.

Isn't the form declaration invisible as far as the browser is concerned? why would the placement of an invisible thing, so to speak, upset alignment?

thanks in advance for any assistance

BlobFisk

12:52 pm on Jul 22, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Actually the form element does have an effect, but it can be negated using CSS:

form {
margin: 0;
display: inline;
}

Technically the <form> decleration should be outside the <table> rather than within a cell.

HTH