Equal Height Columns


Topic: Equal Height Columns

adlib pro asked 7 years ago

In the tutorial on that page there is only three columns: https://mdbootstrap.com/layout/bootstrap-equal-height-columns/ For which Pro version are they valid?   Thanks!

adlib pro answered 7 years ago

OK. Here is the code. I pasted it in the upper comment, though. Regards!

adlib pro commented 7 years ago

I'm waiting for the answer. Still. :)

jivancic pro commented 7 years ago

I am also interested to hear .. what's the solution for that !

Ollie Vincent pro commented 7 years ago

Look below :)

Bartłomiej Malanowski staff pro premium answered 7 years ago

This page is dedicated to the latest version of Bootstrap. It should work with every version of Bootstrap since alpha-6

adlib pro answered 7 years ago

And what about two columns: col-md-8 and col-md-4 Thanks!

Bartłomiej Malanowski staff pro premium commented 7 years ago

they're great, but what's the question?

adlib pro answered 7 years ago

Dear Bartłomiej, I'm really sorry for the late answer! Beg my pardon! I tried to make two cards with equal heights - following the same principle, but without success. And that's my question - two cards with equal heights? Thanks!

Bartłomiej Malanowski staff pro premium commented 7 years ago

Please share your code with us

adlib pro commented 7 years ago

<code> <section> <div class="row"> <div class="col-md-8 mb-8 d-flex align-items-stretch"> <!--Form with header--> <div class="card"> <div class="card-block"> <!--Header--> <div class="form-header default-color" style="z-index: 2;"> <h3 class="h3-responsive">Lorem Ipsum</h3> </div> <!--Body--> <div class="row text-center"> <div class="col-md-12 text-center"> <h3 class="section-heading">Lorem Ipsum is not simply random text.</h3> <h4 class="section-heading blue-text"><strong>It is over 2000 years old</strong></h4> <br> <hr class="light"> <div class="text-justify"> <div class="panel-body text-center"> Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites. Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites. </div> </div> </div> </div><!--/row--> </div> </div> <!--/Form with header--> </div> <div class="col-md-4 mb-4 d-flex align-items-stretch"> <!--Form with header--> <div class="card"> <div class="card-block"> <!--Header--> <div class="form-header warning-color" style="z-index: 2;"> <h3 class="h3-responsive">Lorem ipsum</h3> </div> <!--Body--> <div> Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites </div> </div> </div> <!--/Form with header--> </div> </div> </section> </code>

Bartłomiej Malanowski staff pro premium commented 7 years ago

Your code seems to work perfectly (I checked using MDB 4.4.3 with BS Beta-2). One thing that you should change is to remove .mb-4 class from the .col-md-4. Also, I noticed that you use .mb-8 class along with .col-md-8. That class doesn't exist in both Bootstrap and MDB. Is this your custom class?

Ollie Vincent pro answered 7 years ago

You could try this code from this link. I saved it onto Google Drive because it is really quite useful :) https://docs.google.com/document/d/1DHTM9t47YjivqsLcC1XQT6F3onwyP2fwph6nU54c0No/edit?usp=sharing   Put JS in footer. In this example the class is js-equal-height. Paste this into all your elements that you want the same height.  
Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue
  • User: Pro
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: No