But, the header is just pushing the width of the containing element wider, and I get no ellipsis. I am displaying arbitrary images, and would like to have the width be based on the image properties rather than setting it statically in CSS.
Is there a way that I can make the width of the container be whatever the width of the contained image is? Here's my testbed Codepen.(Just use the range slider to drop the
height
height
until the image width is less than the header width.)