While I was designing a form, I found that designing a form using tables can be much easier and simpler instead of using CSS.
But, is this a good technique to use?
Will it affect the flexibility of the website later?
While I was designing a form, I found that designing a form using tables can be much easier and simpler instead of using CSS.
But, is this a good technique to use?
Will it affect the flexibility of the website later?
HTML is about structure, CSS about design. So if your form semantically is a table, because you have key/value pairs, like "name", "surname", "email", etc. along with the user entered value, simply use a table as structure and design it using CSS.
I don't see any problems using tables with forms. Using tables to design a website is a bad idea, though.
If you build the table the right way, I don't see why it would make the site non flexible.
Think about your customer. Are they likely to want to 'tweak' your design over and over either during development or afterwards ?
If so then choose the table-less route using <div>
s or <ul><li>
. It maybe a bit tougher to get right in the first place but - arguably - much easier to adapt down the line.