Overflow:hidden and bottom padding - HTML CSS CSS Property

HTML CSS examples for CSS Property:padding

Description

Overflow:hidden and bottom padding

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">
#outer {<!-- w  w  w.  ja va2 s .  c  o m-->
   background-color:Chartreuse;
   width:301px;
   height:301px;
   padding:21px;
}

#inner {
   width:301px;
   height:301px;
   background-color:yellow;
   overflow:hidden;
}
</style> 
 </head> 
 <body> 
  <div id="outer"> 
   <div id="inner">
     Lorem 
    <br>Lorem 
    <br>Lorem 
    <br>Lorem 
    <br>Lorem 
    <br>Lorem 
    <br>Lorem 
    <br>Lorem 
    <br>Lorem 
    <br>Lorem 
    <br>Lorem 
    <br>Lorem 
    <br>Lorem 
    <br>Lorem 
    <br>Lorem 
    <br>Lorem 
    <br>Lorem 
    <br>Lorem 
    <br>Lorem 
    <br>Lorem 
    <br>Lorem 
    <br>Lorem 
    <br>Lorem 
    <br>Lorem 
    <br>Lorem 
    <br>Lorem 
    <br>Lorem 
    <br>Lorem 
    <br>Lorem 
    <br>Lorem 
    <br>Lorem 
    <br>Lorem 
    <br>Lorem 
    <br>Lorem 
    <br>Lorem 
    <br>Lorem 
    <br>Lorem 
    <br>Lorem 
    <br>Lorem 
    <br>Lorem 
    <br>Lorem 
    <br>Lorem 
    <br>Lorem 
    <br>Lorem 
    <br>Lorem 
    <br>Lorem 
    <br>Lorem 
    <br>Lorem 
    <br>Lorem 
    <br>Lorem 
    <br>Lorem 
    <br>Lorem 
    <br>Lorem 
    <br>Lorem 
    <br>Lorem 
    <br>Lorem 
    <br>Lorem 
    <br>Lorem 
    <br>Lorem 
    <br>Lorem 
    <br>Lorem 
    <br>Lorem 
    <br>Lorem 
    <br>Lorem 
    <br>Lorem 
    <br>Lorem 
    <br>Lorem 
    <br>Lorem 
    <br>Lorem 
    <br>Lorem 
    <br>Lorem 
    <br>Lorem 
    <br>Lorem 
    <br>Lorem 
    <br>Lorem 
    <br>Lorem 
    <br>Lorem 
    <br>Lorem 
    <br>Lorem 
    <br>Lorem 
    <br> 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials