Ответ 1
Если я понял вас, у вас есть табличные данные, но вы хотите представить их в браузере с помощью элементов div
(таблицы AFAIK и divs с отображением: таблица ведет себя в основном одинаково).
(здесь работает jsfiddle: http://jsfiddle.net/roimergarcia/CWKRA/)
Разметка:
<div class='theTable'>
<div class='theRow'>
<div class='theCell' >first</div>
<div class='theCell' >test</div>
<div class='theCell bigCell'>this is long</div>
</div>
<div class='theRow'>
<div class='theCell'>2nd</div>
<div class='theCell'>more test</div>
<div class='theCell'>it is still long</div>
</div>
</div>
И CSS:
.theTable{
display:table;
width:95%; /* or whatever width for your table*/
}
.theRow{display:table-row}
.theCell{
display:table-cell;
padding: 0px 2px; /* just some padding, if needed*/
white-space: pre; /* this will avoid line breaks*/
}
.bigCell{
width:100%; /* this will shrink other cells */
}
Печальная часть: я не мог этого сделать год назад, когда мне это действительно нужно -_-!