Rounded Corners in Depth
border-radius accepts one to four values and a slash for elliptical corners. 50% makes a circle from a square and 9999px makes a pill.
Example
<style>
.s { width: 70px; height: 70px; background: #14b8a6; border-radius: 50% } .p { display: inline-block; padding: 6px 18px; background: #f59e0b; color: #000; border-radius: 9999px }
</style>
<div class="s"></div><br><span class="p">pill</span>Exercise
Make a circle.
border-radius: %;
Quiz Test
These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.