I designed a message to have the date in the bottom.
Here is the JSfiddle
I don't know how to make the date to be in the bottom (For example the second box). And I don't know how to fix the date to be in the line of the text, if the text is not too long. (For example the first box)
.parent {
overflow: hidden;
background: pink;
width: 70%;
text-align: right;
}
.child {
display: inline-block;
float: left;
text-align: left;
}
<div class="parent">
<div class="child">
txt txt txt txt txt txt txt txt txt txt txt txt txt txt txt txt txt txt txt txt txt txt txt txt txt txt txt txt txt txt txt txt txt txt txt txt txt txt txt txt txt txt txt txt txt txt txt txt txt txt
</div>
HH:MM
</div>
<br/>
<div class="parent">
<div class="child">
txt txt txt txt txt txt <br>
txt txt txt txt txt txt
</div>
HH:MM
</div>
I appreciate every help :)