• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

HTML validation error: A form for each table row

 
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic