1

I want to apply border radius with flexbox and ellipsis on my list items and also want a min-width like the example below.

<ul>
<li style="flex: 1 1;"><span>A</span></li>
<li style="flex: 2 2;"><span>this is a pretty long text that will overflow the parent container</span></li>
<li style="flex: 1 1;"><span>C</span></li>

ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

li {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    color: white;
}

span {
    background-color: blue;
    padding: 0em 1em;
    border-radius: 1em;
}

Here's the example http://jsfiddle.net/mnk/kah0bn6o/1/

The goal is to apply the border radius on the element with the ellipsis applied

Michael Benjamin
  • 346,931
  • 104
  • 581
  • 701
mnk
  • 2,014
  • 2
  • 16
  • 13