I want to display some numbers in one row, so I was using something like that:
<div class="table">
<div class="row">
{{#each cells}}
<div class="cell">{{value}}</div>
{{/each}}
</div>
</div>
and
.table { display: table };
.row {display: table-row};
.cell {display: table-cell; background: red;};
The display is correct if I am using a static HTML page. But as soon as I add the {{#each}}
loop, the table is not displayed correctly anymore, although the resulting HTML in the browser inspector looks exactly the same. No CSS class is affecting them. If I mix static HTML with the dynamic loop, only the static cells are displayed correctly, the dynamic cells are incorrect. This happens in both Firefox and Chrome.
Is there a limitation on using DOM manipulation with table cells?
EDIT: The same happens if I switch everything to traditional
tags. |