HTML CSS examples for CSS Widget:Border Style
Make a transparent border with CSS
<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>