CSS border top right radius is used to set the top right radius of border given to the html element.
Syntax
1 |
border-top-right-radius: radius size in px or percentage; |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
<style> .div-border{ border:1px solid yellow; border-top-right-radius:20px; padding:10px; } </style> </head> <body> <div class="div-border"> <p>This is the paragraph inside div with top right border.</p> </div> </body> </html> |
Output
This is the paragraph inside div with top right border.
CSS border top right radius values list
Sr. No. | value | Description |
---|---|---|
1 | length | Used to give radius in pixels and percentage. |
2 | initial | Used to define as the property initial value. |
3 | inherit | Used to define the computed value of property on the elements parent. |