I have a chat, and I want to add the picture of the user by the side of the div, but I tried and I don't have success.Actually the image is in the bottom of the div, give a look at the image and see where the image is and where I want to add the image. I don't have any ideia to solve it, can someone help me? I'm using bootstrap
.message-content {
border-radius: .625rem .625rem 2px .625rem;
display: inline-block;
flex-wrap: wrap;
width: 20%;
padding: 1.125rem;
}
.message-right .avatar {
-webkit-box-ordinal-group: 3;
-ms-flex-order: 2;
order: 2;
}
.message .avatar {
height: 2rem;
min-height: 2rem;
width: 2rem;
min-width: 2rem;
}
.avatar {
border-radius: 50%;
line-height: 0;
position: relative;
}
.avatar>img {
height: 2rem;
min-height: 2rem;
width: 2rem;
min-width: 2rem
}
<div class="message-content bg-primary text-white">
<h6 class="mb-2 black">New User</h6>
<div>
Hello! This is my first message content in CSS
</div>
</div>
<div class="avatar avatar-sm ml-4 ml-lg-5 d-none d-lg-block">
<img class="avatar-img" src="https://www.kindpng.com/picc/m/495-4952535_create-digital-profile-icon-blue-user-profile-icon.png" alt="">
</div>