I'm currently facing issues with aligning divs at the bottom within multiple vertically aligned divs.
<p>Top of page</p>
<div id="container">
<div class="message">area1</div>
<div class="message">area2</div>
<div class="message">area3
<div class="subarea">subarea3</div>
<div class="subarea">subarea4</div>
</div>
</div>
<p>Bottom of page</p>
CSS
#container {
height: 1000px;
}
.message {
height: 80%;
width: 30.6%;
float: left;
border:1px solid red ;
vertical-align: top;
background-color: #D4D0C8;
overflow-x: hidden;
padding-bottom: 120px;
}
.subarea{
padding: 5px;
border-bottom: 1px solid #B9A073;
word-wrap: break-word;
width: 99%;
padding-bottom: 5px;
float: left;
}
View the Jsfiddle demo here.
The current display looks like this:
https://i.sstatic.net/jHy2W.png
However, I would like it to look like this:
https://i.sstatic.net/0sxqe.png
I have attempted the solutions mentioned in other posts:
Setting the main div to relative and the inner div to absolute with a bottom value of 0, but no success.
Changing the main div to vertical-align bottom and display table-cell, also unsuccessful.
If anyone has any advice or suggestions, please help. Thank you!