html|PHP Using Divs instead of tables. How?

Miscellaneous Forums/General Discussion/html|PHP Using Divs instead of tables. How?


but you shouldn't treat DIV's like table cells



Unless you want to, in which case there's a "display:table;" tag as part of the spec. I also think tables are great for layout, though, and it's daft to get hung up about using them just because they happen to be called tables (which makes nerds say that they should only -- ONLY -- hold tabular data). The fact is your page will validate fine if you use tables to lay things out.