Forum Moderators: open
<Sorry, no urls for example pages.
See Forum Charter [webmasterworld.com]>
[edited by: tedster at 2:45 am (utc) on July 7, 2006]
Try this in the html:
<td class="special"><form>your form here</form></td>
...and then adjust the css:
.special form {margin:0;padding:0;}
Reference thread: Standards Mode and Quirks Mode [webmasterworld.com]
.nospace {margin:0;padding:0;}
<td><form class="nospace">your form here</form></td>
If you ever move away from tabled layout, or put the form somewhere outside the table, this will still maintain the tight spacing on the form itself. Forms are generally the culprit of problem you describe, a forced space after the form. Additionally, naming the selector nospace is an indicator of what it does, and you can apply it to most other objects:
<p class="nospace">
<h4 class="nospace">
* {margin: 0; padding: 0;}
Then I must explicitly set every element I use to the margin and padding I require -- no cross-browser surprises. However, using that rule means I must remember to explicitly set elements such as <ul> or whatever else comes up in the mark-up. Still, I feel the final results are quite worth the obsessive precision.