Control each corner individually. Get your CSS border-radius code instantly.
The CSS border-radius property rounds the corners of an element. You can set a single value to round all corners equally, or set individual values for each corner to create asymmetric shapes. It works on any HTML element including divs, buttons, images and inputs.
/* All corners equal */
border-radius: 8px;
/* Top-left, top-right, bottom-right, bottom-left */
border-radius: 8px 16px 8px 16px;
Set border-radius to 50% on an element with equal width and height. This creates a perfect circle from any square element.
width: 100px;
height: 100px;
border-radius: 50%;