CodePen

HTML

            
              <div id="nogap"></div>
    <!--dont want gap between two divs-->
<div id="banner">
  <div id="banner_inner"></div>
  <div>
            
          
!
via HTML Inspector

CSS

            
              #banner{
  width:480px;
  height:180px;
  background:#ccc;
  padding: 10px;
  }

#banner_inner{
  background:red;
  height: 100%;
  }

#nogap{
   width:500px;
    height:50px;
  background:green;
}
            
          
!
? ?
? ?
Must be a valid URL.
+ add another resource
via CSS Lint

JS

            
              
            
          
!
Must be a valid URL.
+ add another resource
via JS Hint
Loading ..................