I am facing a challenge with aligning a series of inline elements, each containing an input text box, within a single row. The number and labels of these input boxes can vary as they are dynamically loaded via AJAX.
The width of the div housing these inline elements is dynamic, depending on the surrounding content. In the scenario depicted in the image linked below, I am struggling to ensure that the input boxes expand equally to justify the content on both sides. Is there a CSS-only solution for this issue?
https://i.sstatic.net/uK8h0.png
.dynamicWidth {
background-color: green;
height: 400px;
position: absolute;
}
<div class="dynamicWidth">
<div>
<select>
<option>This could be longer or shorter dependending on what is dynamically loaded</option>
</select>
</div>
<hr>
<div>
<span>Length</span>
<input type="text" placeholder="length"><span> x Width</span>
<input type="text" placeholder="width"><span> x Height</span>
<input type="text" placeholder="height">
</div>
</div>