Div overflow x hidden and y shown - HTML CSS CSS Property

HTML CSS examples for CSS Property:overflow

Description

Div overflow x hidden and y shown

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">
.one<!--from   w  w w . j  ava 2 s  .  c om-->
 {
   max-height:100px;
   max-width:100px;
   overflow-x:hidden;
   overflow-y:scroll;
}
</style> 
 </head> 
 <body> 
  <div class="one"> 
   <h1>Lorem ipsum </h1> 
   <h1>Lorem ipsum </h1> 
   <h1>Lorem ipsum </h1> 
   <h1>Lorem ipsum </h1> 
   <h1>Lorem ipsum </h1> 
   <h1>Lorem ipsum </h1> 
   <h1>Lorem ipsum </h1> 
  </div>  
 </body>
</html>

Related Tutorials