Create border on each side of green - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Border Style

Description

Create border on each side of green

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

body {<!--from   w  ww  .  jav  a  2s .com-->
   background-image: url("https://www.java2s.com/style/demo/Opera.png");
   background-repeat: no-repeat;
   margin: 0;
   padding: 0;
}
#borderleft {
   background: none repeat-y scroll 0 0 #93A87D;
   position: absolute;
   left: 0px;
   height: 100%;
   width: 70px;
}
#borderright {
   background: none repeat-y scroll 0 0 #93A87D;
   position: absolute;
   right: 0px;
   height: 100%;
   width: 70px;
}
#content {
   margin: 0px 70px;
}


      </style> 
 </head> 
 <body> 
  <div id="borderleft"></div> 
  <div id="borderright"></div> 
  <div id="content">
    Lorem ipsum 
  </div>  
 </body>
</html>

Related Tutorials