When the screen is lg or larger, I would like my image to be full width (w-100), and when the screen is md or smaller, I want it to be half width (w-50).
<div>
<div class="container">
<div class="row">
<div class="col-md-10 offset-md-1 order-md-2"><img src='image.png' class="w-100 w-md-50">
</div>
</div>
</div>
</div>
Is there a Bootstrap class that can specify different widths for different screen sizes? I tried using w-md-5
similar to offset-md-1
, but it didn't work.