Tuesday, March 18, 2008

Safari form spacing problem

Safari will render a form with extra space at the bottom (typically, right under your submit button), whereas more compliant browsers like Firefox do not. This makes login boxes and other colored form divs and tables render improperly.

The fix is simple ... add this to your opening form tag:

form style="margin: 0px; padding: 0px;"