I am using bootstrap with Angular 9 and a rounded profile picture. If I put width: 19rem
and height: 19rem
the picture keeps rounded but when I have a smaller resolution it overflows onto the next column.
Is there any way to keep width 100% and the height dynamically changes so it has the same aspect ratio (rounded)?
Thank you so much!
.mainImage {
height: 19rem;
width: 19rem;
background-position: center;
background-repeat: no-repeat;
background-size: cover;
border-radius: 100%;
border: 5px #35c68f solid;
}