I'm making an output field with labels in front of them. Each label has a different width due to the label name and I want to let the output field take up the remaining width between the label and the next label. Now the output field is only growing in width if there is text in the field.
HTML:
<div class="row">
<div class="div triple"><label for="bedrijf">Bedrijfsnaam</label>
<span class="output" id="bedrijf"></span></div>
<div class="div triple"><label for="functie">Functie</label>
<span class="output" id="functie"></span></div>
<div class="div triple"><label for="kvk">KVK-nummer</label>
<span class="output" id="kvk"></span></div>
</div>
CSS:
.row {
float: left;
width: 100%;
}
.triple {
width: 33%;
}
.output {
width: auto;
text-align: left;
color: #f57f43;
display: inline-block;
}