position a div scrollbar on the left hand side - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:Position

Description

position a div scrollbar on the left hand side

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">
.list_container {<!--from w  w  w  .j  a  v a  2  s. co  m-->
   direction:rtl;
   overflow:auto;
   height:51px;
   width:51px;
}

#item_direction {
   direction:ltr;
}
</style> 
 </head> 
 <body> 
  <div class="list_container"> 
   <div id="item_direction">
     Lor 
   </div> 
   <div id="item_direction">
     Lor 
   </div> 
   <div id="item_direction">
     Lor 
   </div> 
   <div id="item_direction">
     Lor 
   </div> 
   <div id="item_direction">
     Lor 
   </div> 
   <div id="item_direction">
     Lor 
   </div> 
   <div id="item_direction">
     Lor 
   </div> 
   <div id="item_direction">
     Lor 
   </div> 
   <div id="item_direction">
     Lor 
   </div> 
   <div id="item_direction">
     Lore 
   </div> 
   <div id="item_direction">
     Lore 
   </div> 
   <div id="item_direction">
     Lore 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials