|
|
|
|
|
by haberman
5525 days ago
|
|
I looked into CSS tables a bit more, and this seems to be how you'd write the above: <style type="text/css">
.table { display: table; width: 100%; }
.tr { display: table-row; }
.left-column { display: table-cell; width: 200px; }
.middle-column { display: table-cell; }
.right-column { display: table-cell; width: 200px; }
</style>
<div class="table"><div class="tr">
<div class="left-column">Fixed left column.</div>
<div class="middle column">Liquid center column.</div>
<div class="right-column">Fixed right column.</div>
</div></div>
This is definitely a huge improvement over the CSS box model. If this had been available in practice 10 years ago, I probably wouldn't be complaining about it now. But I still think it is because CSS2 is so big, complicated, and had so many errors that it wasn't implemented for so long. |
|