Set CSS border style inside - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Border Style

Description

Set CSS border style inside

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

.outerDiv{<!--from   ww w.j ava  2 s. co  m-->
   background-color: grey;
   height: 32px;
   text-align: center;
   padding: 16px;
   font-weight: bolder;
   font-size: 25px;
}
.innerDiV{
   margin: 0 auto;
   border: 1px solid black;
   width: 98%;
   margin-top: 10px;
}


      </style> 
 </head> 
 <body> 
  <div class="outerDiv">
    COntent 
   <div class="innerDiV"> 
   </div> 
   <div> 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials