Making border at the top - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Border Style

Description

Making border at the top

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

body{<!--  www.j  a  v  a 2s  . c  o  m-->
   padding:0;
   margin:0;
}
#box1{
   height: 50px;
   background-color:#DFE4E6;
   padding: 20px;
   border-top: thick solid #000;
}
.center{
   text-align: center;
}


      </style> 
 </head> 
 <body> 
  <div id="box1"> 
   <h3 class="center"> CALL US</h3> 
  </div>  
 </body>
</html>

Related Tutorials