Set top-right corner border with CSS

CSSWeb DevelopmentFront End Technology

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 −


Live Demo

         #rcorner {
            border-radius: 25px;
            border-top-right-radius: 45px;
            background: orange;
            padding: 20px;
            width: 400px;
            height: 250px;
      <p id = "rcorner">Rounded border-top-right corner!</p>
Published on 07-Jun-2018 12:06:05