Re: <Form> does not validate depending where it is in the table?
From: Steve Pugh (steve_at_pugh.net)
Date: 03/16/04
- Next message: Geoff Berrow: "Re: Problem with LIMIT and ORDER ?"
- Previous message: Sandman: "undefining functions"
- In reply to: Sims: "<Form> does not validate depending where it is in the table?"
- Next in thread: Michael Winter: "Re: <Form> does not validate depending where it is in the table?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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/>
- Next message: Geoff Berrow: "Re: Problem with LIMIT and ORDER ?"
- Previous message: Sandman: "undefining functions"
- In reply to: Sims: "<Form> does not validate depending where it is in the table?"
- Next in thread: Michael Winter: "Re: <Form> does not validate depending where it is in the table?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|