0

I want to create a messenger like grid layout using bootstrap 4

my html is like the following

`<div class="container-fluid">
   <div class="row">
     <div class="col-md-3">here is a ul of list of contacts</div>
     <div class="col-md-9 ml-auto">msgs display here</div>
     <div class="col-md-9 fixed-bottom ml-auto">textarea here</div>
   </div> 
 </div>`

I want the msgs display here div to start from top of the page till it reaches the text area div problem is, it always has the same height like the first .col-md-3.

How do i make the height of the middle div .col-md-9 independent of the left one? And ofcourse keeping it responsive.

Cheers,

user3052526
  • 681
  • 10
  • 24

1 Answers1

0

I assume (because I cannot see your CSS) that you declared a height for the row div. This makes all the elements have the same height. Create an ID for each element and call them in your CSS, ex):

#msg-display-here {

  /* height goes here */

}

and your div in the html should have an ID as you have 2 classes that are the same:

<div id="msg-display-here" class="col-md-9 ml-auto">msgs display here</div>
DannyV
  • 220
  • 1
  • 6