Mask image to create circle image - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Image

Description

Mask image to create circle image

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">
.faceimg {<!--from w ww .j  a va2s  . c o m-->
   border-radius:100%;
   width:201px;
   height:auto;
}
</style> 
 </head> 
 <body> 
  <div class="circle"> 
   <img class="faceimg" src="https://www.java2s.com/style/demo/InternetExplorer.png" alt=""> 
  </div>  
 </body>
</html>

Related Tutorials