Add scrollbar on dropdown menu options - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Menu Dropdown

Description

Add scrollbar on dropdown menu options

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">
.FixedHeightContainer<!--  w  ww.j av a2 s.c  o m-->
 {
   float:right;
   height:251px;
   width:251px;
   overflow:auto;
}
</style> 
 </head> 
 <body> 
  <div class="FixedHeightContainer"> 
   <h2>Title</h2> 
   <div class="Content">
     my 
    <br> my 
    <br> my 
    <br> my 
    <br> my 
    <br> my 
    <br> my 
    <br> my 
    <br> my 
    <br> my 
    <br> my 
    <br> my 
    <br> my 
    <br> my 
    <br> my 
    <br> my 
    <br> my 
    <br> my 
    <br> 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials