Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS display: table-cell for proportional width columns Reply To: display: table-cell for proportional width columns

#157753
queshaw
Participant

I should have said why I was asking the question. If I need an extra wrapper element simply to have display: table assigned to it, it seems almost as artificial as using a table. For example:

<div class="page">
    <div class="body">...</div>
    <div class="sidebar">...</div>
</div>

seems clear to me, semantically. If I need another element so that it can have display: table:

<div class="extra">
  <div class="page">
    <div class="body">...</div>
    <div class="sidebar">...</div>
  </div>
</div>

“extra” serves no purpose, semantically. I suppose it might be better for a blind person if it was not a table though.