How can I use Bootstrap 5 to arrange a div and a canvas in a row until the md
breakpoint?
I want the canvas to align immediately after the text ends, currently each part has equal width.
Is there a way to remove the unused space from the div?
https://i.sstatic.net/C9W4G.png
<link
href="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="24464b4b50575056455464110a140a16">[email protected]</a>/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC"
crossorigin="anonymous"
/>
<section class="p-5">
<div class="container">
<div class="row g-4 bg-primary">
<div class="col-md-6">
<div>
<p>
first stuff
<span>hi</span>
</p>
<p>
second stuff
<span>hii</span>
</p>
<p>
third stuff
<span>hiii</span>
</p>
<p>global stuff <span>hello</span></p>
</div>
</div>
<div class="col-md-6 bg-dark">
<canvas></canvas>
</div>
</div>
</div>
</section>