This is my CSS code. There are two divs and two img so one div message is on the left-hand side and div message 2 is on the right-hand side. But it is at the bottom I want it on the left-hand side beside div message.
Thanks!
My HTML code that I used and here is a Snippet of what I tried until now:
.photo{
height: 70px;
width: 70px;
border: 1px solid white;
border-radius: 90px;
position: absolute;
margin-top: 20px;
right: 55%;
}
.massege2{
background-color: whitesmoke;
width: 200px;
overflow-wrap: break-word;
border: 1px solid red;
border-radius: 20px;
margin-left: 65%;
min-height: 11%;
margin-top: 30px;
font-family: 'Berkshire Swash', cursive;
}
.photo2{
height: 70px;
width: 70px;
border: 1px solid white;
border-radius: 90px;
position: absolute;
margin-top: 20px;
right: 1px;
}
.massege{
background-color: whitesmoke;
width: 200px;
overflow-wrap: break-word;
border: 1px solid red;
border-radius: 20px;
margin-left: 10%;
min-height: 11%;
margin-top: 30px;
font-family: 'Berkshire Swash', cursive;
}
<div class="conversation">
<div class='massege'>
<img src='../images/photo.png' class='photo'>
<p class='date'>2018-Jan-Sun -- 06-18-58</p>
<hr style='border: 1px solid black'>
<p>hi</p>
</div>
<div class='massege2'>
<img src='../images/photo.png' class='photo2'>
<p class='date'>2018-Jan-Sun -- 06-18-58</p>
<hr style='border: 1px solid black'>
<p>hi</p>
</div>
</div>
2018-Jan-Sun -- 06-18-58
hi
2018-Jan-Sun -- 06-18-58
hi