Add top and bottom border to center panel - HTML CSS CSS Property

HTML CSS examples for CSS Property:border-bottom

Description

Add top and bottom border to center panel

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  www .j a  v  a  2 s  .com-->
   padding:0;
   margin:0;
   background-color:#f4f4f4;
}
header {
   background:#333333;
   color:#ffffff;
   height:80px;
   border-bottom:red 5px solid;
}
header nav {
   float:right;
}
#banner {
   height:500px;
   text-align:center;
   color:#ffffff;
   border-bottom:red 5px solid;
   background-color:green;
}
#banner h1 {
   font-size:50px;
   margin-top: 0;
}


      </style> 
 </head> 
 <body> 
  <header> 
  </header> 
  <section id="banner"> 
   <h1>Test</h1> 
  </section>  
 </body>
</html>

Related Tutorials