Make overflow hidden - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:Overflow

Description

Make overflow hidden

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">
#wrapper {<!--  www  . j a v  a 2 s  .  c o  m-->
   width:151px;
   overflow:hidden;
   outline:2px solid blue;
}

#scroller {
   width:171px;
   height:100px;
   overflow:auto;
   background:yellow;
}
</style> 
 </head> 
 <body> 
  <div id="wrapper"> 
   <div id="scroller">
     foo 
    <br> bar 
    <br> baz 
    <br> foo 
    <br> bar 
    <br> baz 
    <br> foo 
    <br> bar 
    <br> baz 
    <br> foo 
    <br> bar 
    <br> baz 
    <br> foo 
    <br> bar 
    <br> baz 
    <br> foo 
    <br> bar 
    <br> baz 
    <br> foo 
    <br> bar 
    <br> baz 
    <br> foo 
    <br> bar 
    <br> baz 
    <br> foo 
    <br> bar 
    <br> baz 
    <br> 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials