HTML CSS examples for CSS Widget:Border Style
Set border to half width
<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>