Re: <Form> does not validate depending where it is in the table?

From: Steve Pugh (steve_at_pugh.net)
Date: 03/16/04


Date: Tue, 16 Mar 2004 12:01:03 +0000


"Sims" <siminfrance@hotmail.com> wrote:

>This will validate, (http://validator.w3.org/)
>
><form method="POST" action="" name='xForm' style='background:inherit;'>
><table style='background:inherit; width:100%;'>
>
></table>
></form>
>
>But this will not,
>
><table style='background:inherit; width:100%;'>
><form method="POST" action="" name='xForm' style='background:inherit;'>

></form>
></table>
>
>(the <form> is inside the <table> tag). Why is it different?

Look at the HTML specification. The only elements that can be direct
children of table are caption, tr, tbody, thead and tfoot.

The form must either surround the whole table, or be contained within
a single table cell.

>The reason why i ask is because i want to place the valid code above in
>another table, (the code above will be a cell of a table), but internet
>explorer makes the height of the cell greater.

By default form elements have a margin. Set this margin to zero in
your CSS and the extra space will porobably vanish (but we can't be
sure because you didn't supply a URL).

        Steve

-- 
"My theories appal you, my heresies outrage you, 
 I never answer letters and you don't like my tie."  - The Doctor
Steve Pugh        <steve@pugh.net>        <http://steve.pugh.net/>


Relevant Pages

  • Re: How to find the bottom of a table in VBA
    ... even from table to table (and cell to cell) within one report. ... But, since hundreds of these templates already exist, and contents ... Instead it tells me the right margin of the page. ... right justifying that line, it would automatically be positioned just to ...
    (microsoft.public.word.vba.general)
  • Re: Inserting a picture
    ... We do tend to forget about cell margins as long as we're ... Word MVP FAQ site: http://word.mvps.org ... scanned the picture as a jpg. ... margin. ...
    (microsoft.public.word.docmanagement)
  • Re: Table cell margin value
    ... Alex St-Pierre nous racontait que: ... I'm looking to understand the cell width in a table. ... margin between text and column line than Excel. ... is the exact margin Word use ?? ...
    (microsoft.public.word.vba.general)
  • Re: Inserting a picture
    ... Also make sure that the paragraph formatting in the cell ... But I want to insert a picture in one of those ... margin. ...
    (microsoft.public.word.docmanagement)
  • Re: Table Questions
    ... I saw cell padding earlier but I'm hoping I can find how far the borders are ... > collection object can be used with either the Selection ... >>left margin to the cell left border. ... >>right margin to the cell right border. ...
    (microsoft.public.word.vba.general)