<ul class="container">
<li class="row">
<div class="col">
<img width="390" src="#">
<div>29 €</div>
</div>
<div class="col d-none d-sm-block">
<h3>Description</h3>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor
incididunt ut labore et dolore magna aliqua.</p>
</div>
<div class="col">
<h3>Jamie</h3>
<button><span>View Item</span></button>
</div>
</li>
</ul>
In the code above, using Bootstrap 5, I need to hide an element for xs screen using .d-none .d-sm-block classes. It's only working using .d-none .d-lg-block to hide for md, sm and xs.
How can I hide the element only for xs screen.
Thank you.
question from:
https://stackoverflow.com/questions/65841775/how-can-i-hide-an-html-element-for-xs-screen-with-bootstrap-5 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…