Quote:
Originally Posted by dmwcons
Please will you give some examples.
|
Sure... Tables work differently that Divs (block display)... A table will scale to accommodate the contents of the table cell without breaking to the next line... A div acts like a parent container and the layout properties of the contents do not transfer back up the chain while preserving the div layout. There are some css properties which you can use to force a span or a div to act like a table but the workaround breaks compatibility for most browsers requiring complicated JavaScript hacks (if it's even possible I have never bothered).
It's hard to put into words exactly how the behavior differs... but I have a page which illustrates it...
Divs which do not break to the next line
If you have a solution which justifies exclusive div layouts, I am open ears. A practical everyday real world issue which forces my use of tables would be dynamic horizontal menus which cannot break to the next line in order to preserve the design. But there are many other instances where it pops up too... Tables are useful...