Complete the code to make the corners of the box rounded.
div {
border-radius: [1];
width: 100px;
height: 100px;
background-color: #4CAF50;
}The border-radius property controls how rounded the corners are. Using 10px rounds the corners by 10 pixels.
Complete the code to round only the top-left corner of the box.
div {
border-top-left-radius: [1];
width: 120px;
height: 120px;
background-color: #2196F3;
}border-radius instead of the specific corner property.The border-top-left-radius property rounds only the top-left corner. Using 15px sets the radius to 15 pixels.
Fix the error in the code to properly round all corners.
div {
border-radius: [1];
width: 150px;
height: 150px;
background-color: #FF5722;
}The border-radius property accepts one value to round all corners equally. Using 10px applies 10 pixels radius to all corners.
Fill the blank to round the top corners by 20px and bottom corners by 10px.
div {
border-radius: [1];
width: 180px;
height: 180px;
background-color: #9C27B0;
}The border-radius property with four values sets the corners in order: top-left, top-right, bottom-right, bottom-left. 20px 20px 10px 10px rounds the top corners by 20px and bottom corners by 10px.
Fill all three blanks to create a circle with diameter 100px.
div {
width: [1];
height: [2];
border-radius: [3];
background-color: #E91E63;
}To make a perfect circle, width and height must be equal (100px), and border-radius should be 50% to make the corners fully rounded.