Add an outline to a circular png image - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Image

Description

Add an outline to a circular png 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">
img {<!--   ww  w. ja  va  2s  .  c  o  m-->
   width:181px;
   height:181px;
   border:6px solid Chartreuse;
   border-radius:91px;
   background:red;
}
</style> 
 </head> 
 <body> 
  <img src="https://www.java2s.com/style/demo/Opera.png" alt="">  
 </body>
</html>

Related Tutorials