View Single Post
  #5 (permalink)  
Old 01-09-2009, 07:21 AM
MrGamm's Avatar
MrGamm MrGamm is offline
WebProWorld Pro
 
Join Date: Dec 2007
Posts: 268
MrGamm RepRank 3MrGamm RepRank 3
Default Re: CSS based design vs. Table based design

Quote:
Originally Posted by dmwcons View Post
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...
__________________
James Weisbrod - programmer

Last edited by MrGamm; 01-09-2009 at 07:30 AM.
Reply With Quote