Adding right border for div - HTML CSS CSS Property

HTML CSS examples for CSS Property:border-right

Description

Adding right border for 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">

div {<!--from w ww  .jav  a2 s  .co m-->
   border: none;
   padding: 3px 0 3px 3px;
   border-right: 3px solid black;
   width: 200px;
   background: yellow;
}


      </style> 
 </head> 
 <body> 
  <div>
    test 
  </div> 
  <div>
    test 
  </div> 
  <div>
    test 
  </div> 
  <div>
    test 
  </div>  
 </body>
</html>

Related Tutorials