Is there a way to stretch a child div without specifying fixed widths? Even when trying to wrap items and child in one wrapper div, the child div always takes up 100% width. Not full horizontal width. Thank you.
.parent {
background: skyblue;
width: 350px;
overflow-x: auto;
white-space: nowrap;
}
.child {
background: springgreen;
white-space: normal;
}
.item {
width: 50%;
background: red;
display: inline-block;
}
<div class="parent">
<div class="item">
This is some v y erty erty erty
</div>
<div class="item">
This is serty erty erty erty erty
</div>
<div class="item">
This is somerty erty erty erty ert
</div>
<div class="child">
This .child div should extend horizontaly
</div>
</div>