I want to create a rounded image profile with linear-gradient color.
My current HTML:
<img src="/images/profile.webp" alt="" class="card-header-user-profile"/>
My current CSS:
.card-header-user-profile {
height: 80px;
width: 80px;
max-height: 100%;
object-fit: cover;
border: 2px solid;
border-image: linear-gradient(45deg, green, red) 1;
border-radius: 50%;
}
My current result:
I want to make the border: linear-gradient + rounded.
How can I do this in CSS?