Search code examples
htmlcsstabular

Tabular table design Vs floated div in css


There is this long and old debate whether designers should use tables or not in their html pages. The alternative is to use floated divs.

What are the advantages and disadvantages of both techniques?


Solution

  • You shouldn't be using tables to formulate your design. Tables should be used for tabular data, and tabular data only!

    Use divs to position things properly, use divs to hold your content. There is no definitely no problem using a table to evenly display data, but there is a problem (poor design) using tables to use as your complete site layout.