I tried to make justify-content: flex-end;
work, for overflowing-hidden DIV content, in IE11, without success.
After trying several combinations I created a minimal snippet which works in Chrome but not in IE11:
.token-container {
width: 200px;
white-space: nowrap;
overflow: hidden;
padding: 5px;
box-shadow: 1px 1px 2px 1px silver inset;
display: flex;
flex-direction: row;
justify-content: flex-end;
//align-content: flex-end;
}
.token {
display: inline-block;
border: 1px solid silver;
margin: 1px 3px 0 0;
border-radius: 4px;
height: 19px;
padding: 0 3px;
}
<div class="token-container">
<div class="token">
<span class="token-text">t-bone</span>
</div>
<div class="token"><span class="token-text">hamburger</span></div>
<div class="token"><span class="token-text">pancetta</span></div>
<div class="token"><span class="token-text">leberkäs</span></div>
<div class="token"><span class="token-text">bacon</span></div>
</div>
Here's the same snippet in CodePen: http://codepen.io/anon/pen/bVgOYJ
I would expect the 'bacon' item to be aligned with the right end of the box; instead the 't-bone' is aligned left.
Please point out any errors, perhaps in my expectations for Internet Explorer.
UPDATE: Added my own alternative solution
Leveraging a response to another SO question, I was able to do it--without using flexbox.
http://codepen.io/anon/pen/ZbeQmW
So, thanks @AaronSieb, I guess.