Why do you want to
never use tables and
only use divs?
(BTW: no-one ever answers this with a decent -- rarely even an accurate -- answer. infact, most people go and answer a completely different question, and if you dont have an answer to this question because it doesn't apply to you, then contending the original points on whatever grounds is arguing at cross-purposes: because I don't believe that MidiMagic is saying
only use tables)
In every other part of software development, heck, in almost every other field, period: people use the tool that best fits the job, and rarely think twice about it. there's no for-loop appreciators club, or cult of the saucepan.. although, come to think of it, there probably is...
the occasional "goto" never really harmed anyone; and likewise, the occasional table is
sometimes both 'justifiable' and the 'best choice'.
saucepans work well as as long as you dont try and use them as for loops; divs work well and are totally 'easy': as long as you don't try and make a table-like layout with them. if you do, then you suffer from a lack of
one of the following information bridges:
- the one that keeps the column widths the same
- the one that keeps the row heights the same
you can hack in one of those, but not both. it should be evident from the specification of HTML and CSS that you can't.
there's a reason why most (perhaps all?) GUI toolkits have some kind of low-level 'table layout'. if it was possible to compose that functionality via other means, there'd be no need for that low level layout.
..........
but anyway, IMHO, the next HTML should get rid of all of the elements (and their silly names ), create two new elements 'block' and 'inline', and have everything specified by CSS:
<block style="table-rows:2; table-cols:2">
<block><inline>top left table cell!</inline></block>
<block style="background-image:'some_image.png;'"/>
<block><inline>omgz</inline></block>
<block><inline>bottom right table cell</block>
</block>
solve everyone's problems, huh? if you care to, you could even implement this hot new language yourself (albeit statically) using some clever XSLT.
something for the weekend?