I am currently developing an application that features a home screen displaying a client's biography. I am working on creating a header that will have a title and a circular display image. In the code, I have used 3 divs to hold the wrapper, title, and picture. I have used flex display to have them in one line and flex:1 to position the image to the right. However, when applying a border-radius of 50%, the photo seems to be squished. Can you assist me with this issue?
Thank you. Here is the code snippet:
.headerOfBio {
display: flex
}
.displayPic {
flex: 1;
background-image: url("../images/displayPicture.jpg");
border-radius: 50%;
}
<div class="quote titleBio">
<div class="headerOfBio">
<h3>
MEET THE <span class="diffColor">FOUNDER</span>
</h3>
<div class="displayPic">
</div>
</div>
</div>
https://i.sstatic.net/coHyH.jpg
After adding height and width it becomes like this: