Set border-left and border-right - HTML CSS CSS Property

HTML CSS examples for CSS Property:border-right

Description

Set border-left and border-right

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

#myDiv<!--from   w  w w  .  j  a  va  2  s .  c o  m-->
{
   width: 100px;
   height: 100px;
   border: 1px solid #999;
   border-width: 0 1px; /*horizontal, vertical*/
}


      </style> 
 </head> 
 <body> 
  <div id="myDiv"></div>  
 </body>
</html>

Related Tutorials