Set border to half width - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Border Style

Description

Set border to half width

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

.box{<!--from  ww  w  . j  a  va 2  s . c om-->
   width:500px;
}
.box hr{
   width: 300px;
   border-bottom: 1px solid #ccc;
}


      </style> 
 </head> 
 <body> 
  <div class="box">
    ... 
   <hr> 
  </div>  
 </body>
</html>

Related Tutorials