I have the following setup
<div class="bar">
<div>one</div>
<div>two</div>
<div>three</div>
<div>four</div>
<div>five</div>
<div>six</div>
<div>seven</div>
<div>eight</div>
<div>nine</div>
<div>ten</div>
<div>eleven</div>
<div>twelve</div>
</div>
with css
.bar>div {
display: inline-block;
margin-left: 10px;
}
I want to make it so that if div.bar gets too small, its children disappear to the left. So "one" disappears first (completely or just partially).
My css knowledge is minimal so I don't even know where to start. I tried using overflow but to no success. I'm assuming it doesn't get triggered as inline-block automatically wraps.