Title: scrollbar for collapsing menu
Last modified: August 22, 2016

---

# scrollbar for collapsing menu

 *  [florinon](https://wordpress.org/support/users/florinon/)
 * (@florinon)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/scrollbar-for-collapsing-menu/)
 * hello i have a little problem , maybe if you know how can i create a scrollbar
   for the collapsing menu from the gmap .
    [http://www.vezicazare.ro](http://www.vezicazare.ro)
   on the map in the right side is the collapsing menu if you clik on the arrow 
   for “Cazare pe judete” it will show you all the subcategories but whithout a 
   scrollbar will not show al off the subcategories , some will go out off the page.
 * i think this is where i should input some code but i’m afraid that i will wreck
   something
 *     ```
       </div>
       <div class=”BottomLeft”></div>
       <?php $map_cat_ex = get_current_city_cat_ex();$map_cat_exarr =explode(“,”, $map_cat_ex); if($catname_arr){ ?>
       <div id=”trigger” class=”triggeroff”></div>
   
       <div class=”map_category”>
   
       <form id=”ajaxform” name=”slider_search” class=”pe_advsearch_form” action=””>
       <input onkeydown=”if (event.keyCode == 13){limitReset();ajaxSearch()}” type=”text” class=”inputbox” id=”search_string” name=”search” value=”Title or Keyword” onclick=”this.value=”” />
   
       <div class=”toggle” style=”display:none;”>
       <ul id=”sitemap” class=”treeview”>
       <?php
       //print_r ($catname_arr);
       if(get_option(‘ptthemes_map_sub_colapse’)){
       for($c=0;$c<count($catname_arr);$c++){
   
       $e=0;
       if($catname_arr[$c][3]==’0′){
       ?>
       ```
   

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Josh](https://wordpress.org/support/users/josh401/)
 * (@josh401)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/scrollbar-for-collapsing-menu/#post-5745606)
 * You don’t need to edit your code. We can fix it by adding a little custom CSS:
 *     ```
       .map_category{
           max-height: 400px;
           overflow: auto;
       }
       ```
   
 * The `max-height` will set the maximum height of the `div` container.
 * The `overflow` will add the scrollbar.
 *  Thread Starter [florinon](https://wordpress.org/support/users/florinon/)
 * (@florinon)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/scrollbar-for-collapsing-menu/#post-5745613)
 * thank’s a lot
    and another thing , i think this is much more complicated how 
   can i make to show in that list the subchild categories now it shows just categories
   + one row subcategories

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘scrollbar for collapsing menu’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [florinon](https://wordpress.org/support/users/florinon/)
 * Last activity: [11 years, 3 months ago](https://wordpress.org/support/topic/scrollbar-for-collapsing-menu/#post-5745613)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
