Utilizing Bootstrap 4, I have a div
containing lengthy text that causes overflow within the element.
The issue is depicted in this image example.
By introducing spaces to shorten words, the text displays correctly without overflowing.
However, extended words such as "hhhhhhhhhhhhhhhhhhh"
lead to overflow like in the illustration.
This is my code:
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" rel="stylesheet" />
<div class="p-1 mt-4 d-flex flex-wrap">
<div class="p-1 m-1 d-flex flex-content-around shadow-lg p-2 mb-4 bg-white rounded box">
<div class="my-auto">
<img alt="pokemon pic" src="https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/66.png" />
</div>
<div class="p-1 d-flex flex-column">
<div class="p-0">
<h3>Macgoooooo</h3>
</div>
<div class="p-0 d-flex flex-column flex-wrap">
<div class="p-0">
<span>cought at</span>
</div>
<div class="p-0">
<small>2019-09-01</small>
</div>
</div>
</div>
</div>
</div>
I am seeking guidance on how to ensure that the text remains within the boundaries of the flexbox.