Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HTML validation error: A form for each table row

 
Sverre Moe
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Consider the follow table configuration:



This will display perfectly, with an <form> for each row, but the problem is the configuration is illegal. The HTML validator will complain if I have a <form> within a table any other place than in a <td>. First it will show a warning ("Invalid location of tag (form)") at the beginning of <form>, then it will show an error at the end tag (No start tag (<form> .

My design is that each row will have its own form.

The validation error will go away if I configure the subsequent rows in the following manner.



But this will not display perfectly like the previous configuration. The columns within the second table will not correspond with the columns in the first table.

Anyone know a way to either use solution number 2 where the column from table2 will match the columns from the table1, or some other configuration that will allow me to keep a form for each row in a table

I could set up the outer colums with same width as the inner columns, but I also want to keep them dynamic.

[ May 14, 2008: Message edited by: Sverre Moe ]
[ May 14, 2008: Message edited by: Sverre Moe ]
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The only you can do to make the nested tables line up is to set absolute widths to all of the table cells.

Eric
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic