Re: form in row, row too high
On 2008-04-22, John Smith <jsmith@company.com> wrote:
> One of the rows in a table is twice as high as others. I trace the
> problem to the following code. If I remove everything between <form> and
></form>, the row would have a regular height. If I put anything in
> between, even the word "test", suddenly, the row height doubles.
>
> Anyway to cure the problem?
Possibly the default bottom margin on form of about 1em that some
browsers give you in quirks mode.
Set form { margin: 0 }, and use strict mode anyway.
You get strict mode by starting all pages with:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
Post a URL.
|