What's new
HTML Forums | An HTML and CSS Coding Community

Welcome to HTMLForums; home of web development discussion! Please sign in or register your free account to get involved. Once registered you will be able to connect with other members, send and receive private messages, reply to topics and create your very own. Our registration process is hassle-free and takes no time at all!

How to create responsive column count using bootstrap 5?

fa2020

New member
Hi,
I'm going to create thumbnails that each row has 2 columns for sm, 3 columns for md and 5 rows for lg and larger screens. How can I revise my code:

<div class="row">
<div class="col-md-3">
<img src="..." class="img-thumbnail" alt="...">
</div>
<div class="col-md-3">
<img src="..." class="img-thumbnail" alt="...">
</div>
<div class="col-md-3">
<img src="..." class="img-thumbnail" alt="...">
</div>
<div class="col-md-3">
<img src="..." class="img-thumbnail" alt="...">
</div>
</div>
 
Back
Top