Use the border-top-right radius property in CSS to set the top right radius border. You can try to run the following code to implement border-top-right-radius property −
Example
<html>
<head>
<style>
#rcorner {
border-radius: 25px;
border-top-right-radius: 45px;
background: orange;
padding: 20px;
width: 200px;
height: 150px;
}
</style>
</head>
<body>
<p id="rcorner">Rounded corners!</p>
</body>
</html>