10

I would like to make the columns after the first row so col-md-6 to be equal height even with dynamic content (go to full page).

<html>
<head>
 <title>Page Title</title>
 <meta charset="utf-8">
 <meta name="viewport" content="width=device-width, initial-scale=1">
 <!-- Bootstrap CSS -->
 <link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
 <!--JS-->
 <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM" crossorigin="anonymous"></script>
</head>
<body>
 <div class="col-xs-3">
 <div class="row">
 <div class="col-md-6">
 <div class="shadow p-3 mb-5 bg-white rounded">
 <div class="container">
 <div class="row">
 <div class="col-md-6">
 -Icon-
 </div>
 <div class="col-md-6">
 <p>Date</p>
 </div>
 </div>
 </div>
 <p>Author</p>
 <div class="row">
 <div class="col-md-6">
 <p>Time</p>
 </div>
 <div class="col-md-6">
 <div>
 </div>
 </div>
 <!-- This needs to get the latest unread message -->
 <!-- {% if unreadMessagesCount %}
 <p>Unread: {{unreadMessagesCount}}</p>
 
 {% if inbox %}
 <div>
 <p>{{inbox.first.sender}}</p>
 </div>
 <div>
 <div>
 <p>{{inbox.first.subject}}</p>
 </div>
 </div>
 {{inbox.first.text}}
 {{inbox.first.time}}
 {% endif %}
 {% else %}
 <p>Unread: 0</p>
 <div>
 <p>There are no senders</p>
 </div>
 {% endif %} -->
 </div>
 </div>
 </div>
 <div class="col-md-6">
 <div class="shadow p-3 mb-5 bg-white rounded">
 <div class="container">
 <div class="row">
 <div class="col-md-6">
 -Icon-
 </div>
 <div class="col-md-6">
 More stuff than possible
 <!-- {% if request.user.refresh_token != "" %}
 <div>
 There are maybe some
 </div>
 {% else %}
 <div>
 There are no calendar events
 </div>
 {% endif %} -->
 </div>
 </div>
 </div>
 <p>Author</p>
 <div class="row">
 <div class="col-md-6">
 <p>Time</p>
 </div>
 <div class="col-md-6">
 <div>
 </div>
 </div>
 </div>
 </div>
 </div>
 <!-- This needs to get the earliest calendar event -->
 </div>
 </div>
</body>
</html>

Kameron
11k4 gold badges19 silver badges31 bronze badges
asked Feb 25, 2022 at 19:23
2

1 Answer 1

15

Add h-100 or height: 100%; to the first child of col-md-6 column start for both columns.

<html>
<head>
 <title>Page Title</title>
 <meta charset="utf-8">
 <meta name="viewport" content="width=device-width, initial-scale=1">
 <!-- Bootstrap CSS -->
 <link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
 <!--JS-->
 <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM" crossorigin="anonymous"></script>
</head>
<body>
 <div class="col-xs-3">
 <div class="row">
 <div class="col-md-6">
 <div class="shadow p-3 mb-5 bg-white rounded h-100">
 <div class="container">
 <div class="row">
 <div class="col-md-6">
 -Icon-
 </div>
 <div class="col-md-6">
 <p>Date</p>
 </div>
 </div>
 </div>
 <p>Author</p>
 <div class="row">
 <div class="col-md-6">
 <p>Time</p>
 </div>
 <div class="col-md-6">
 <div>
 </div>
 </div>
 <!-- This needs to get the latest unread message -->
 <!-- {% if unreadMessagesCount %}
 <p>Unread: {{unreadMessagesCount}}</p>
 
 {% if inbox %}
 <div>
 <p>{{inbox.first.sender}}</p>
 </div>
 <div>
 <div>
 <p>{{inbox.first.subject}}</p>
 </div>
 </div>
 {{inbox.first.text}}
 {{inbox.first.time}}
 {% endif %}
 {% else %}
 <p>Unread: 0</p>
 <div>
 <p>There are no senders</p>
 </div>
 {% endif %} -->
 </div>
 </div>
 </div>
 <div class="col-md-6">
 <div class="shadow p-3 mb-5 bg-white rounded h-100">
 <div class="container">
 <div class="row">
 <div class="col-md-6">
 -Icon-
 </div>
 <div class="col-md-6">
 More stuff than possible
 <!-- {% if request.user.refresh_token != "" %}
 <div>
 There are maybe some
 </div>
 {% else %}
 <div>
 There are no calendar events
 </div>
 {% endif %} -->
 </div>
 </div>
 </div>
 <p>Author</p>
 <div class="row">
 <div class="col-md-6">
 <p>Time</p>
 </div>
 <div class="col-md-6">
 <div>
 </div>
 </div>
 </div>
 </div>
 </div>
 <!-- This needs to get the earliest calendar event -->
 </div>
 </div>
</body>
</html>

answered Feb 25, 2022 at 20:04
Sign up to request clarification or add additional context in comments.

2 Comments

Used h-100 which did work,
This worked after I fixed my rows. I had two elements in each col (on top of one-another) and once I separated them into two rows, viola!

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.