|
Posted by Ben C on March 1, 2008, 10:38 am
Please log in for more thread options
>
> Thanks for your reply. I should explain, I'm trying to
> remove all tables from a webpage.
>
> Currently I have a table like this:
>
><table width=100%><tr>
><td width=50>text text<td width=50> text text<td
>
width="*">dflajlfadljfalfkjdaslkaasldkjflakjdfaadslkjsdlfkjadslkfjalkjfldskjlfjdsldkjlksdjflsdkjfldskj
></table>
>
> In tables, TDs never wrap of course.
>
> So really my question is, how to achieve the same thing with DIVs?
>
> I assume that underlying both DIVs and TDs are the same fundmental
> mechanisms.
No, unless you set display: table-cell on the divs (won't work in IE
though).
You have discovered one of the differences-- floats stack up underneath
each other when they fill the available width but table rows don't
"break".
|