Use Border top to highlight a dark div - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Div Border

Description

Use Border top to highlight a dark div

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

#MainHeader<!--from  w  w  w .  j a  v a  2  s  . c  o  m-->
{
   position:relative;
   top:0px;
   height:50px;
   width:1000px;
   background-color: rgba(0, 0, 0, 0.7);
   border-top:10px solid black;
   filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#99000000, endColorstr=#99000000);
   -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#99000000, endColorstr=#99000000)";
}


      </style> 
 </head> 
 <body> 
  <div id="MainHeader"></div>  
 </body>
</html>

Related Tutorials