Erase a border piece using CSS - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Border Style

Description

Erase a border piece using 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">

div {<!--from   ww  w. j av  a  2s.  c o  m-->
   padding:3em;
   font-size:1em;
   width:20em;
   position:relative;
}
div:after,
div:before {
   font-size:6.7em;
   color:#999;
   position:absolute;
   top:0;
}
div:before {
   content: "[";
   left:0;
}
div:after {
   right:0;
   content:"]";
}


      </style> 
 </head> 
 <body> 
  <div class="box">
    This is a test. This is a test. This is a test. This is a test. This is a test. 
  </div>  
 </body>
</html>

Related Tutorials