CSS padding between header and underneath div - HTML CSS CSS Property

HTML CSS examples for CSS Property:padding

Description

CSS padding between header and underneath div

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <title>Lorem ipsum</title> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <style id="compiled-css" type="text/css">
.panel {<!--   www . ja v a  2s .c o  m-->
   width:auto;
   height:auto;
   border-radius:3px;
   position:relative;
}

.panel-default {
   padding:21px;
   border:2px solid Chartreuse;
   background:yellow;
}

.panel-default>.panel-body {
   font-size:15px;
}
</style> 
 </head> 
 <body> 
  <div class="grid_4"> 
   <div class="panel panel-default"> 
    <div class="panel-body">
      Lorem ipsum dolor sit amet, c 
    </div> 
   </div> 
   <div style="height: 100px; width: 100px; background-color: green;"></div> 
  </div>  
 </body>
</html>

Related Tutorials