Quantcast
Channel: Active questions tagged flexbox - Stack Overflow
Viewing all articles
Browse latest Browse all 1675

How can an element with text shrink to its minimum size [duplicate]

$
0
0

enter image description here

You are seeing a flex-container with 3 flex-items. How can I let the middle box shrink to its minimum size depending on the width the text requires? I want to add two decoration dashes on the left and right of the title which should be as close as possible to the imaginary-text-box sides so there is no space (red). Stil, I want the text to break when I make the page smaller...


Viewing all articles
Browse latest Browse all 1675

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>