Create a round image with border-radius - HTML CSS CSS Property

HTML CSS examples for CSS Property:border-radius

Description

Create a round image with border-radius

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <style id="compiled-css" type="text/css">

img{<!-- w  w w  .j a v  a  2  s  .  c o m-->
   -moz-border-radius:24px;
   -webkit-border-radius: 24px;
   border-radius: 24px;
   display:block;
}
div {
   border: 2px solid #c7c7c7;
   border-radius: 24px;
   -webkit-border-radius: 24px;
   width:40px;
   height:40px;
}


      </style> 
 </head> 
 <body> 
  <div> 
   <img src="https://www.java2s.com/style/demo/Opera.png"> 
  </div>  
 </body>
</html>

Related Tutorials