border-radius for Circular Elements in CSS


Create circular elements by setting border-radius to 50%.

Source Code

.circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #007bff;
}
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments