Create rounded image with CSS

CSSWeb DevelopmentFront End Technology

To create a rounded image with CSS, use the border-radius property.

Example

Live Demo

<!DOCTYPE html>
<html>
   <head>
      <style>
         img {
            border-radius: 20px;
            border: 1px solid blue;
         }
      </style>
   </head>
   <body>
      <h2>Coding Ground</h2>
      <img src = "https://www.tutorialspoint.com/videotutorials/images/coding_ground_home.jpg" alt="Online Compiler" width="300" height="300">
   </body>
</html>
raja
Published on 17-May-2018 08:55:38
Advertisements