There is a mesh bootstrap 4 with 4 columns. How to make the content inside (colored with yellow color) with any amount of content be the same height? For the speakers themselves there is a great solution:
.row { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex; flex-wrap: wrap; } .row > [class*='col-'] { display: flex; flex-direction: column; } But, there are 2 problems: 1 - inside contains a link that does not flex ; 2 - we need a stroke around the content, BUT without a stroke of the picture itself. Here I have a plug and I do not know how to solve it.
Code:
.row { margin-top: 20px; display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex; } .row>[class*='col-'] { display: flex; flex-direction: column; border: 1px solid green; padding: 10px; } .task-box { background-color: yellow; } .task-box-inner { border: 2px solid blue; } <link href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.0/css/bootstrap.min.css" rel="stylesheet" /> <div class="row no-gutters"> <div class="col-3 mb-5"> <a class="task-box" href="javascript:void(0);"> <img class="img-fluid" src="http://via.placeholder.com/350x150"> <div class="task-box-inner"> <h4>Lorem ipsum dolor sit amet, consectetur adipisicing elit</h4> <div class="hour">posted 15 hours ago</div> </div> </a> </div> <div class="col-3 mb-5"> <a class="task-box" href="javascript:void(0);"> <img class="img-fluid" src="http://via.placeholder.com/350x150"> <div class="task-box-inner"> <h4>Lorem ipsum dolor sit amet, consectetur adipisicing elit</h4> <div class="hour">posted 15 hours ago</div> </div> </a> </div> <div class="col-3 mb-5"> <a class="task-box" href="javascript:void(0);"> <img class="img-fluid" src="http://via.placeholder.com/350x150"> <div class="task-box-inner"> <h4>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</h4> <div class="hour">posted 15 hours ago</div> </div> </a> </div> <div class="col-3 mb-5"> <a class="task-box" href="javascript:void(0);"> <img class="img-fluid" src="http://via.placeholder.com/350x150"> <div class="task-box-inner"> <h4>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud</h4> <div class="hour">posted 15 hours ago</div> </div> </a> </div> </div>