I want to make child element to go beyond it's parent element. So further the parent element can apply overflow-x: scroll
. Here some illustration on what I want to achieved, and what I got:
I have tried to solve the problem through applying display: inline-block
to child element, or trying find out from similar question. but it hasn't solved my problem yet. Here is the html:
<div class="parent">
<div class="child">Child Element</div>
<div class="child">Child Element</div>
<div class="child">Child Element</div>
<div class="child">Child Element</div>
<div class="child">Child Element</div>
</div>
Every child has a different width which if it added up will exceed parent width. Is there any solution or hint?