Set top-left corner border with CSS

CSSWeb DevelopmentFront End Technology

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>
raja
Published on 07-Jun-2018 10:47:30
Advertisements