2012-09-30, 06:25 PM
Many of the designers/starters i meet think that DIVs are better and more 'standard' than tables
Now this is true for content. But what about layouts? Look back in time and realize how easy it was to create a two column layout in which the two blocks covered the page fully. Try it divs.....you'll end up finding a 'way' or hack to do it. Like absolute position or similar stuff.
Yes, DIVs are good for general purpose and reduce code but they still don't defeat tables when it comes to layout.
Let's get real; you still use tables for forms...don't you?
I sometimes find myself afraid to use tables like they are deprecated lol
Some say table bloat the code. I believe reverse. You will up writing even longer code to make complex layouts with DIVs.
Cons of Divs:
I'm not saying tables are perfect. They do have their share of problems...but they are better way to make layout...even if it's not tabular data.
What do you prefer? Tables or Divs?
Now this is true for content. But what about layouts? Look back in time and realize how easy it was to create a two column layout in which the two blocks covered the page fully. Try it divs.....you'll end up finding a 'way' or hack to do it. Like absolute position or similar stuff.
Yes, DIVs are good for general purpose and reduce code but they still don't defeat tables when it comes to layout.
Let's get real; you still use tables for forms...don't you?
I sometimes find myself afraid to use tables like they are deprecated lol
Some say table bloat the code. I believe reverse. You will up writing even longer code to make complex layouts with DIVs.
Cons of Divs:
- no vertical-align
- Bad for symmetrical layout
- hacks required to achieve even the simplest layout sometimes
- using positioning sometimes gives inconsistent results across different browsers and screen sizes
I'm not saying tables are perfect. They do have their share of problems...but they are better way to make layout...even if it's not tabular data.
What do you prefer? Tables or Divs?