div {
width: 60px;
height: 60px;
border-radius: 50%;
}
/*
note:
should width = height
*/
#circle {
width: 100px;
height: 100px;
background: red;
border-radius: 50%
}
<div id="circle">
</div>
#circle {
width: 100px;
height: 100px;
background: red;
border-radius: 50%
}
#it is the border-radius:50; that makes the circle.
.MyCircle{
width:100px;
height:100px;
background-color:blue;
border-radius:50px;
}
#div2{
width: 150px;
height: 150px;
border: 3px solid #05ffb0;
border-radius: 50%;
padding: 20px;
text-align: center;
}
Code Example |
---|
Css :: import antd css |
Css :: css text rotate |
Css :: wordpress remove sticky header |
Css :: css animation linear |
Css :: center an element in css completely |
Css :: sass import variable from another file |
Css :: keyframe in css |
Css :: pseudo class vs pseudo element |
Css :: grid css |
Css :: how to make a list vertical in css |
Css :: vertical and horizontal align center div |
Css :: blur background css |
Css :: linear gradient not covering entire page |
Css :: css overflow-y not working |
Css :: css change all text |
Css :: css image hover |
Css :: css word break |
Css :: where css |
Css :: css disabled button hover style |
Css :: CSS Conic Gradients |
Css :: fonmt family css |
Css :: css inset |
Css :: css custom properties |
Css :: how to use background property in css |
Css :: estilos de button css |
Css :: cursor css |
Css :: how to make bold text css |
Css :: details summary hide arrow |
Css :: facebook box-shadow css |
Css :: css class and id |