Set top-right corner border with CSS


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

Live Demo

<html>
   <head>
      <style>
         #rcorner {
            border-radius: 25px;
            border-top-right-radius: 45px;
            background: orange;
            padding: 20px;
            width: 400px;
            height: 250px;
         }
      </style>
   </head>
   <body>
      <p id = "rcorner">Rounded border-top-right corner!</p>
   </body>
</html>

Updated on: 25-Jun-2020

187 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements