Creating left and right border - HTML CSS CSS Property

HTML CSS examples for CSS Property:border-right

Description

Creating left and right border

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

.content-body{<!--   w  ww . ja  v a2 s  . c  o m-->
   border-style:solid;
   height:1000px;
}
.siteborder{
   border-style:solid;
   height:100%;
   width:100px;
   display:inline-block;
   vertical-align:top;
}
.inner-content{
   width:150px;
   border-style:solid;
   display:inline-block;
   vertical-align:top;
}


      </style> 
 </head> 
 <body> 
  <div class="content-body"> 
   <div class="left-content-bar siteborder"></div> 
   <div class="inner-content">
     ... some content 
   </div> 
   <div class="right-content-bar siteborder"></div> 
  </div>  
 </body>
</html>

Related Tutorials