Hide Scroll bar for scrollable div - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Scrollbar

Description

Hide Scroll bar for scrollable div

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 {<!--from   w  w  w . j av a2s.  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