I am struggling with implementing a simple flex container that contains standard divs. The issue I am facing is that the overflow does not display a vertical scroller as desired. In order to achieve this, I have included the following CSS code snippet:
#chatBody {
height: 170px;
overflow-y: scroll;
display: flex;
flex-direction: column;
justify-content: flex-end;
min-height: 0;
}
Additionally, within the HTML structure, the chat messages are contained within a div element with the id "chatBody". Here is an example of how the chat messages are structured:
<div id="chatBody">
<div class="chat-msg">
<div class="chat-msg-room"></div>
<div class="chat-msg-user"></div>
<div class="chat-msg-text">Disconnected from chat</div>
</div>
<!-- Additional chat message elements go here -->
</div>