I'm trying to implement white-space: nowrap;
and text-overflow: ellipsis;
on a flex:1;
div without setting the max-width
. I want it to adjust to the width flex:1
gives.
Here is a fiddle that explains what I want and what actually happens: https://jsfiddle.net/dani3l/6y04bvu1/13/
I'd like to keep the solution css only if possible.
Thanks in advance!