i trying to create div like this picture:
background - transparent radius - 8px gradient color for border
and i trying to do this with this code:
body {
background: #000;
}
.avatar {
width: 180px;
height: 180px;
border-radius: 9999px;
border: transparent solid 8px;
background: linear-gradient(#fff 0 0) padding-box,
linear-gradient(to right, #11bbfe, #8c41fb) border-box;
border-color: transparent;
}
<div class="avatar"></div>
but with this code the background are #fff and not transparent, if i will change
linear-gradient(#fff 0 0)
to
linear-gradient(transparent 0 0)
the background will be the gradient and not transparent
how can i do that? tnx