I am currently working on a chat web application that has a unique bottom bar layout. The bottom bar consists of a button on the left, a text entry field in the center, and another button on the right:
<div id="bottom-bar">
<div class="button-left">
<img src="https://placeholdit.co//i/40x40">
</div>
<div class="textentry">
<input type="text" id="chatmsg" name="chatmsg">
</div>
<div class="button-right">
<img src="https://placeholdit.co//i/40x40">
</div>
</div>
#bottom-bar {
position: fixed;
bottom: 0px;
height: 40px;
width: 100%;
}
My goal is to (1) align the left button to the far left of the bottom bar, (2) align the right button to the far right of the bottom bar, and (3) have the input field expand in the middle to fill all available space.
I attempted to achieve this by using the following CSS styling:
#bottom-bar {
...the css above and also included...
display: flex;
flex-direction: row;
flex-wrap: nowrap;
justify-content:space-between;
align-items: center;
}
#chatmsg{
width: auto;
}
Unfortunately, my efforts did not yield the desired result. Any guidance or suggestions would be greatly appreciated.