#circle {
width: 100px;
height: 100px;
background: red;
border-radius: 50%
}
div {
width: 60px;
height: 60px;
border-radius: 50%;
}
/*
note:
should width = height
*/
#circle {
width: 100px;
height: 100px;
background: red;
border-radius: 50%
}
.circle {
aspect-ratio: 1/1;
width: 30%;
background: red;
border-radius: 50%;
}
<div id="circle">
</div>
#circle {
width: 100px;
height: 100px;
background: red;
border-radius: 50%
}
#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;
}
#circle {
width: 100px;
height: 100px;
border-radius: 50%;
}
#div2{
width: 150px;
height: 150px;
border: 3px solid #05ffb0;
border-radius: 50%;
padding: 20px;
text-align: center;
}
Code Example |
---|
Css :: css button border |
Css :: center a button wordpress |
Css :: remove on click border |
Css :: css border radius not working |
Css :: css image overflow |
Css :: html center image |
Css :: align items center css |
Css :: delete after content css |
Css :: button edges rounded css |
Css :: font-strech css |
Css :: background blend mode |
Css :: how to justify text in css |
Css :: css pointer event |
Css :: css hover darken color |
Css :: how to remove gap between divs |
Css :: css light grey |
Css :: css border only top and bottom |
Css :: Make the cursor appear as a crosshair on all links of the web page: |
Css :: font face css |
Css :: css no wrap |
Css :: how to give background overlay in css |
Css :: no break line html |
Css :: how to install tailwind css in html |
Css :: live sass compiler settings |
Css :: css vendor prefixes |
Css :: multiple radial gradient css |
Css :: animation shorthand css |
Css :: css a link style |
Css :: @fontface otf |
Css :: show icon on hover css |