Below is the code snippet that I am working with:
<td>
<span class='label label-success'>text1</span>
<span class='label label-success'>text2</span>
<span class='label label-success'>text3</span>
<span class='label label-success'>text4</span>
<span class='label label-success'>text5</span>
</td>
I am looking to restrict the width of the paragraph in order to introduce line breaks between spans once the maximum width is reached. The desired output should be like this:
text1 text2 text3
text4 text5
In case text4 exceeds the set maximum width.
Do you have any suggestions or solutions?