create double borders through CSS - HTML CSS CSS Property

HTML CSS examples for CSS Property:border-style

Description

create double borders through 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  w w w .j  a  v a  2  s.c  om-->
   padding:20px;
   border: 1px solid black;
}
.container{
   display:inline-block;
   width: 70px;
}
.childdiv{
   display:inline-block;
   width: 30px;
}


      </style> 
 </head> 
 <body> 
  <div class="container"> 
   <div class="childdiv"> 
   </div> 
  </div> 
  <div class="container"> 
   <div class="childdiv"> 
   </div> 
  </div> 
  <div class="container"> 
   <div class="childdiv"> 
   </div> 
  </div> 
  <div class="container"> 
   <div class="childdiv"> 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials