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

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

From: Zoltan Hawryluk <zoltan@netcom.ca>
Date: Tue, 3 Apr 2001 15:09:45 -0400
Message-ID: <051686CF5E6CD211B8FC00A0C9D4CF4504A3C2B3@exmail.corp.netcom.ca>
To: "'www-html@w3.org'" <www-html@w3.org>, "'www-style@w3.org'" <www-style@w3.org>
Someone I know said this would work:

<table>
	<tr>
		<form ...>

			<td>

				<!-- the form is here -->
			</td>
		</form>
	</tr>
</table>

Is this valid?  It seems like it validates with the W3C validator ... but I
want to make sure that this is 100% the case.

Zoltan.

> -----Original Message-----
> From: www-style-request@w3.org [mailto:www-style-request@w3.org]On
> Behalf Of J. David Eisenberg
> Sent: Tuesday, April 03, 2001 2:27 PM
> To: Zoltan Hawryluk
> Cc: 'www-html@w3.org'; 'www-style@w3.org'
> Subject: Re: HTML/XHTML: issues with tables and forms.
> 
> 
> 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 15:10:05 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:09 GMT