Styling <fieldset>
is working oddly. In Google Chrome the divs are fit to content.
.table {
border: none;
border-collapse: collapse;
display: table;
margin: 0;
min-width: auto;
padding: 0;
table-layout: fixed;
width: 100%;
}
.cell {
background: #ccc;
border: 1px solid black;
display: table-cell;
height: 50px;
}
<fieldset class="table">
<div class="cell">1</div>
<div class="cell">2</div>
<div class="cell">3</div>
</fieldset>
whereas what I want is
.table {
border: none;
border-collapse: collapse;
display: table;
margin: 0;
min-width: auto;
padding: 0;
table-layout: fixed;
width: 100%;
}
.cell {
background: #ccc;
border: 1px solid black;
display: table-cell;
height: 50px;
}
<div class="table">
<div class="cell">1</div>
<div class="cell">2</div>
<div class="cell">3</div>
</div>
How can I style <fieldset>
to look like this latter one?