I am facing a challenging issue with bootstrap 4.
Here is the problem: I have a row with two columns in the code snippet below. The first column contains an extremely long text without any spaces, while the second one is a small column specified as "col-auto".
<html>
<head>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
</head>
<body>
<div style="background-color: red; width: 500px;" class="container">
<div class="row">
<div class="col">
THIS_IS_A_SUPER_LONG_TEXT_AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
</div>
<div class="col-auto">
RIGHT
</div>
</div>
</div>
</body>
</html>
The issue arises when my columns are displayed on two separate lines, rather than wrapping around as desired.
Please refer to the example image here:
https://i.sstatic.net/iMaP8.png
What I want is for the text to wrap properly, and look like this (without additional spaces):
https://i.sstatic.net/mtlDE.png
Can anyone advise if this is achievable? If so, which CSS property should be applied to which tag? I've tried using the width:auto
attribute but haven't been successful.
Thank you