I am trying to reproduce an image of a green square in pure css3. You can see the image here:
So far I have managed to create a square similar to the one shown in the picture. The problem is the border of the circle in the square. As you can see, the border of this circle in the image is gradient, but I don’t (see the Violin), and I have no idea how to copy this into CSS ...
Here is my square violin
The CSS code that I am currently using is:
.greenBlock, .greenCore {
background-color: #00c200;
border: 3px solid;
border-top-color: #00de00;
border-right-color: #006900;
border-bottom-color: #006900;
border-left-color: #00de00;
z-index: 10;
width: 42px;
height: 42px;
}
.greenCore {
width: 22px;
height: 22px;
border-radius: 50%;
-webkit-transform: translate(25%, 25%);
transform: translate(25%, 25%);
}
How can I make this gradient circle border in CSS3?
Thank you so much
source
share