Set top-left corner border with CSS


Use the border-top-left-radius property to set the border of the top left corner. You can try to run the following code to implement border-left-radius property:

Example

Live Demo

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

Updated on: 25-Jun-2020

148 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements