Thursday, June 30, 2022

How to make Twitter Bootstrap columns all the same height?

Make Twitter Bootstrap columns all the same height

Hello, welcome to In this post, I will tell you, How to make Twitter Bootstrap columns all the same height? Bootstrap is the most popular front-end framework. The popup design, which I will make in this post, we will show dynamic content on jquery click function.

Here is the working image:


We will make bootstrap all columns same height with help of jquery:
// Here is the html code:
<link href="" rel="stylesheet"/>
<div class="container-fluid">
<div class="row">
    <div class="col-xs-4 panel" style="background-color: red">
    <div class="col-xs-4 panel" style="background-color: yellow">
        content content content
<img width="100" height="100" src="text.png"> </div> <div class="col-xs-4 panel" style="background-color: blue"> content content content
</div> </div> </div> // Here is the jquery script: $( document ).ready(function() { var heights = $(".panel").map(function() { return $(this).height(); }).get(), maxHeight = Math.max.apply(null, heights); $(".panel").height(maxHeight); });

 There are so many code in bootstrap and I will let you know all. Please do comment if you any query related   to  this post. Thank you.


the authortherichpost
Hello to all. Welcome to Myself Ajay Malhotra and I am freelance full stack developer. I love coding. I know WordPress, Core php, Angularjs, Angular 7, Angular 8, Angular 9, Angular 10, Angular 11, Angular12, Angular 13, Angular 14, Bootstrap 5, Nodejs, Laravel, Codeigniter, Shopify, Squarespace, jQuery, Google Map Api, Vuejs, Reactjs, Big commerce etc.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.