Position two div with border inside a div - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Div Border

Description

Position two div with 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">

.outerDiv{<!--from   ww w. j a v  a  2s.  com-->
   display: block;
   background: none repeat scroll 0% 0% #FFF;
   height: 400px;
   margin: 1%;
   width: 97.5%;
   border: 1px solid blue;
   box-shadow: 1px 0px 13px -2px blue;
   border-radius: 6px;
}
.leftDiv{
   height: 400px;
   width: calc(65% - 1px);
   float: left;
   border-right: 1px solid blue;
}
.rightDiv{
   height: 400px;
   width: 35%;
   float: left;
   background:orange;
}


      </style> 
 </head> 
 <body> 
  <div class="outerDiv"> 
   <div class="leftDiv"> 
   </div> 
   <div class="rightDiv"> 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials