CSS Properties: How to defines the shape of the border of the bottom-right corner?
Solution:
HTML Code:
Explanation:
- This HTML document demonstrates how to define the shape of the border of the bottom-right corner of a div.
- The CSS style block applies styling to the div element.
- border: 2px solid; sets a solid border with a width of 2 pixels for all sides of the div.
- padding: 10px; adds a padding of 10 pixels inside the div, creating space between the content and the border.
- background:#DDF9F8; sets the background color of the div to #DDF9F8.
- border-bottom-right-radius: 2em; applies a border radius of 2em to the bottom-right corner of the div, giving it a rounded appearance.
Live Demo:
See the solution in the browser
Supported browser
![]() |
![]() |
![]() |
![]() |
![]() |
Yes | Yes | Yes | Yes | Yes |
What is the difficulty level of this exercise?
Test your Programming skills with w3resource's quiz.