create a second border inside a div - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Div Border

Description

create a second border inside a div

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

.box {<!--from  ww  w.  j a va  2  s.com-->
   border: 1px solid black;
   width: 100%;
   height: 200px
}

.box:before {
   content: '';
   display: block;
   position: absolute;
   height: 200px;
   border-left: 1px solid #000;
   margin-left: 30px
}

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

Related Tutorials