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 14:53:27 UTC