W3C home > Mailing lists > Public > www-html@w3.org > April 2001

Re: HTML/XHTML: issues with tables and forms.

From: J. David Eisenberg <catcode@catcode.com>
Date: Tue, 3 Apr 2001 13:27:16 -0500 (CDT)
To: Zoltan Hawryluk <zoltan@netcom.ca>
cc: "'www-html@w3.org'" <www-html@w3.org>, "'www-style@w3.org'" <www-style@w3.org>
Message-ID: <Pine.LNX.3.96.1010403132443.11312A-100000@tengu.host4u.net>
On Tue, 3 Apr 2001, Zoltan Hawryluk wrote:

> Problem is, this is not a valid document, because the <form> begins in one
> table column, and ends in another (this is especially bad if you want to
> parse this document with an XML parser), so I converted it to XHTML, as seen
> here: http://members.attcanada.ca/~zoltan/examples/xhtml-form.html
> However, if you view these two documents with most of the popular browsers,
> there is a extra piece of white space added inside the table cells ... which
> is not how I want the page to render.  I tried using style sheets to get rid
> of this, but it seems like nothing can get rid of this ... my questions are:
> 1) is there a work around to this problem in HTML or style sheets that
> handle this problem? (Yeah .. you can make this one form, but how about if
> these two forms go to two different CGIs?)  I know that I could wrap the
> <form> in a <div> tag with and in CSS force the height to be a certain pixel
> height, and the overflow to be hidden, but that seems like a hack.

I added this to your stylesheet:

   form { margin: 0px; }

and it now looks great in Mozilla on Linux and IE5.5 on Windows.

J. David Eisenberg  http://catcode.com/
Received on Tuesday, 3 April 2001 14:53:28 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:05:56 UTC