I am attempting to adjust the text to fit into divs of varying sizes that are responsive due to viewport units.
There seems to be an issue: the code below works well in a Codepen, at least for the four examples I have: https://codepen.io/gramm/pen/VJPavg
The text fits perfectly inside the div and does not overflow when resizing the page. However, when using the exact same HTML and CSS on my Bootstrap 4 page, the text overflows.
EDIT: Initially, it was working fine in Firefox 60.7.1(esr). After updating to 60.7.2(esr), the text started overflowing even in the codepen. It's also overflowing in Edge...
Can anyone pinpoint the cause of this behavior? Is it something in Bootstrap causing the discrepancy from what we see in Codepen? Or is there some CSS styling in CodePen that I might have missed on my page?