Consider this CSS snippet:
.table {
display:table;
}
.table-row {
display: table-row;
}
.table-cell {
display: table-cell;
}
Now, let's add some HTML to go along with it:
<div class="table">
<div class="table-row">
<div class="table-cell">
<label>Label One</label>
</div>
<div class="table-cell">
<input type="text">
</div>
</div>
...
</div>
At 100% zoom level, everything looks fine. But when we zoom in to 400%, then reset to 100%, things get messy.
If you want to see an example, check out this fiddle.
Unfortunately, Chrome versions 28, 29, and 30 seem to have trouble handling the spacing with this setup. Firefox, Safari, Opera are unaffected, and surprisingly Internet Explorer does not cause issues either.
Other than ditching
display:table/table-row/table-cell
, is there a way to adjust the HTML/CSS so that Chrome respects spacing even after zooming?