"Flex Box Align"
Bootstrap 4.1.1 Snippet by subhashy

<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <!------ Include the above in your HEAD tag ----------> <div class="container1"> <div class="details" style="background-color:coral;">RED</div> <div class="details" style="background-color:lightblue;">BLUE</div> <div class="details" style="background-color:lightgreen;">Green div with more content. Green div with more content.Green div with more content. Green div with more content. Green div with more content. Green div with more content. Green div with more content.</div> </div>
.container1 { margin-top:60px; height:300px; color:#333; padding:15px; display: -webkit-flex; /* Safari */ -webkit-align-items: center; /* Safari 7.0+ */ display: flex; align-items: stretch; } .details { -webkit-flex: 1; /* Safari 6.1+ */ flex: 1; padding:15px; } .details:nth-child(2) { align-self:center; } .details:nth-child(3) { align-self:flex-end; } @media (max-width:767px) { .container1 { display:block; height:auto; } }

Related: See More


Questions / Comments: