Is it feasible to craft a grid similar to Pinterest using Bootstrap 4?
I am aware of the jQuery plugins that can be used, but is there a way to achieve this purely with CSS?
Note: This is not a duplicate question. Please try to comprehend my query first. I need to avoid using jQuery. Just stick to CSS and refrain from utilizing columns in CSS since they alter the list order. I hope you grasp my request.
This is what I currently have:
https://i.sstatic.net/TTEqK.jpgBut this is what I desire: https://i.sstatic.net/zect3.jpg
Here is my existing code:
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css">
<style type="text/css">
.items{
background-color: #999;
margin: 5px 0;
}
</style>
</head>
<body>
<div class="row">
<div class="col-4"><div class="items">1<br><br><br></div></div>
<div class="col-4"><div class="items">2<br><br></div></div>
<div class="col-4"><div class="items">3<br><br><br><br></div></div>
<div class="col-4"><div class="items">4<br><br></div></div>
<div class="col-4"><div class="items">5<br></div></div>
<div class="col-4"><div class="items">6<br><br></div></div>
<div class="col-4"><div class="items">7<br><br><br><br></div></div>
<div class="col-4"><div class="items">8<br><br></div></div>
<div class="col-4"><div class="items">9<br><br><br><br></div></div>
<div class="col-4"><div class="items">10<br><br></div></div>
<div class="col-4"><div class="items">11<br><br><br><br></div></div>
<div class="col-4"><div class="items">12<br><br></div></div>
</div>
</body>
</html>