As I work on developing a website based on bootstrap 4, my focus is on optimizing it for mobile devices. In order to achieve this, I am looking for ways to hide certain elements on specific screen sizes. Can anyone guide me on how to achieve this?
I have previously relied on the ".hidden-sm-down" class which is explained in detail here:
Despite that, I have also experimented with other alternatives such as .d-none, .d-md-block, .d-xl-none or simply using "hidden".
<div class="col-lg-4 order-lg-1 .d-none .d-sm-block">
<div class="card-profile-image">
<a href="#">
<img src="myimage.ong" alt="" class="rounded-circle">
</a>
</div>
</div>
While I can successfully hide the element using .d-none across all devices, my goal is to specifically target xs and sm screens for hiding the element.