Interactive online courses HTML Academy
2026-03-09 10:57 Diff

You can round individual corners using the properties: border-top-left-radius, border-top-right-radius, border-bottom-right-radius, and border-bottom-left-radius.

You can also set different horizontal and vertical rounding radii. To do this, you need to write two values separated by spaces in the corner rounding property. The first value determines the horizontal radius, and the second determines the vertical:

/* Horizontal radius of 30px, vertical radius of 15px */ border-top-right-radius: 30px 15px;

Various horizontal and vertical radii can be set in the border-radius property. To do this, use /. For example:

/* Horizontal radius for all corners of 10px, vertical radius of 5px */ border-radius: 10px / 5px; /* Different horizontal and vertical radii for each corner */ border-radius: 10px 20px 30px 40px / 5px 15px 25px 35px;