Creating borders at the top and bottom of content - HTML CSS CSS Property

HTML CSS examples for CSS Property:border-bottom

Description

Creating borders at the top and bottom of content

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 {<!--from ww w  .j  a  v a2  s.co m-->
   padding: 25px;
}
.div {
   border-top: 1px solid black;
   border-bottom: 1px solid black;
   width: 50px;
   height: 50px;
}


      </style> 
 </head> 
 <body> 
  <div class="div">
    hello 
  </div>  
 </body>
</html>

Related Tutorials