Is there a way to achieve fluid text behavior for flex items like in the following example:
.container{
display: flex;
flex-wrap: wrap;
max-width: 200px;
background: red;
}
div:not(.container){
word-break: break-word;
background:blue;
color: white;
font-weight: 600;
}
<div class="container">
<div>Looooooooooooooooooong text looooooooong</div>
<div>Smooll</div>
<div>Smoll</div>
</div>
Is it possible for the items to behave like fluid text? For example, have "Smooll" appear on the same row as the end of "looooong text," as if they were just normal text rather than being in a flex container. The number of items is dynamic. Thank you for taking the time to read this!
Edit:
I need to use flex to remove an element (dynamically chosen) based on an additional class on the specific item. The desired end result is illustrated here: https://i.sstatic.net/c6Y1z.png