Back
A step-by-step tutorial on how to create beautifully shaped avatar.
<div class="avatar"></div>
.avatar { width: 150px; height: 100px; border: 5px solid #AA771C; background-image: url('https://media.istockphoto.com/photos/beautiful-afro-girl-with-curly-hairstyle-picture-id1381221247?b=1&k=20&m=1381221247&s=170667a&w=0&h=4bt0RFmAffRSqrKa2N2vJAFbWgmbRg7x-0ziJaRtpxE='); background-size: cover; background-position: center; border-radius: 20% / 50%; }And that's it.
<div class="avatar"></div> <style> .avatar { width: 150px; height: 100px; border: 5px solid #AA771C; background-image: url('https://media.istockphoto.com/photos/beautiful-afro-girl-with-curly-hairstyle-picture-id1381221247?b=1&k=20&m=1381221247&s=170667a&w=0&h=4bt0RFmAffRSqrKa2N2vJAFbWgmbRg7x-0ziJaRtpxE='); background-size: cover; background-position: center; border-radius: 20% / 50%; } </style>Thank you for reading this article.