Make a transparent border with CSS - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Border Style

Description

Make a transparent border with CSS

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">

html, body {
   height: 100%;
}
body {<!--from   ww  w. j a va  2 s .  co m-->
   background: url(https://www.java2s.com/style/demo/Safari.png);
   background-size: 100% 100%;
}
.your_class {
   height: 100px;
   width: 100px;
   margin: 100px;
   border: 10px solid rgba(255,255,255,.5);
}


      </style> 
 </head> 
 <body> 
  <div class="your_class"></div>  
 </body>
</html>

Related Tutorials