I am currently working on styling a div using Bootstrap 5. I have a specific requirement where I want the container to have a width of 50 when the screen size is bigger than the medium breakpoint, and by default, it should have a width of 75. In Tailwind, I was able to achieve this using the class md:w-50
, but I haven't been able to find a similar solution in Bootstrap. Is it possible to change the width using a specific class name in Bootstrap? I have successfully adjusted padding using classes, but changing the width of the container has been a challenge.
<div class="container-sm w-75 min-vh-75 d-flex flex-column justify-content-lg-start align-items-center m-auto mt-3">
<p></p>
</div>
Any suggestions or help would be greatly appreciated. Thank you!