Answers for "how to add border radius to an element in css"

CSS
7

border-radius circle using %

.circle {
    background-color:#fff;
    border:1px solid red;    
    height:100px;
    border-radius:50%;
    -moz-border-radius:50%;
    -webkit-border-radius:50%;
    width:100px;
}
<div class="circle"></div>
Posted by: Guest on April-04-2020
0

javascript change border radius

element.style.borderRadius = '1em';
Posted by: Guest on August-04-2021

Browse Popular Code Answers by Language