have border .gif repeating on both left and right side of container div - HTML CSS CSS Property

HTML CSS examples for CSS Property:border-right

Description

have border .gif repeating on both left and right side of container 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">

.wrap{<!--from w w  w .j  a  va  2s .co m-->
   position:absolute;
   width:400px;
   height:400px;
   background:#ccc;
}
.leftb, .rightb{
   position:absolute;
   top:0;
   background: transparent url(https://www.java2s.com/style/demo/Firefox.png) repeat-y 0 0;
   color: #333333;
   width: 20px;
   height:400px;
}
.leftb {
   left:0;
}
.rightb {
   right:0;
}


      </style> 
 </head> 
 <body> 
  <div class="wrap"> 
   <div class="leftb"></div> 
   <div class="rightb"></div> 
  </div>  
 </body>
</html>

Related Tutorials