Title: Vertical Scroll
Last modified: August 11, 2021

---

# Vertical Scroll

 *  [mamounrajab](https://wordpress.org/support/users/mamounrajab/)
 * (@mamounrajab)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/vertical-scroll-8/)
 * How can I add a Vertical Scroll?
    I tried to use this css but not useful: .EnlighterJS{
   max-height: 500px; }

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

 *  Plugin Author [Andi Dittrich](https://wordpress.org/support/users/andi-dittrich/)
 * (@andi-dittrich)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/vertical-scroll-8/#post-14760119)
 * that code only works with EnlighterJS <= 3.0 – for the new versions see [https://github.com/EnlighterJS/EnlighterJS/issues/87](https://github.com/EnlighterJS/EnlighterJS/issues/87)
 *  Thread Starter [mamounrajab](https://wordpress.org/support/users/mamounrajab/)
 * (@mamounrajab)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/vertical-scroll-8/#post-14762339)
 * unfortunately, no one works -my theme is neve-
 *     ```
       /* Enlighter collapse
       ----------------------------------------------------------------------------------- */
       .enlighter-collapse{
   
           // default layout - single codeblock
           &.@{VIEW_STANDARD}{
   
               // scrollbar on y axis
               overflow-y: auto;
               max-height: 500px;
           }
   
           // tabbed layout - use inner container a scroll wrapper!
           &.@{VIEW_CODEGROUP}{
   
               // scroll wrap
               .enlighter-codegroup-wrapper{
                   // scrollbar on y axis
                   overflow-y: auto;
                   max-height: 500px;
               }
           }
   
           // override in case the full sourcecode should be displayed
           &.enlighter-collapse-full.@{VIEW_STANDARD}{
               max-height: none;
           }
           &.enlighter-collapse-full.@{VIEW_CODEGROUP} .enlighter-codegroup-wrapper{
               max-height: none;
           }
       }
       ```
   
 *     ```
       .enlighter-default{
             overflow-y: scroll;
              max-height: 100px;
       }
       ```
   
    -  This reply was modified 4 years, 10 months ago by [mamounrajab](https://wordpress.org/support/users/mamounrajab/).
    -  This reply was modified 4 years, 10 months ago by [mamounrajab](https://wordpress.org/support/users/mamounrajab/).
 *  Plugin Author [Andi Dittrich](https://wordpress.org/support/users/andi-dittrich/)
 * (@andi-dittrich)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/vertical-scroll-8/#post-14764704)
 * the first one is raw less-css code (cannot be used directly) – the second one
   is correct and should work. could you please provide a link to the issue ? i’ll
   take a look on it. maybe it’s a theme issue
 *  Thread Starter [mamounrajab](https://wordpress.org/support/users/mamounrajab/)
 * (@mamounrajab)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/vertical-scroll-8/#post-14764892)
 * NEVE THEME WEBSITE LINK:
    [https://themeisle.com/themes/neve/](https://themeisle.com/themes/neve/)
   LINK TO DOWNLOAD NEVE THEME [https://wordpress.org/themes/neve/](https://wordpress.org/themes/neve/)—————————————–
   Remark: about the second code: The code works but without a Vertical Scroll. 
   And there is another person encountered the same problem on another theme.
 *  Plugin Author [Andi Dittrich](https://wordpress.org/support/users/andi-dittrich/)
 * (@andi-dittrich)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/vertical-scroll-8/#post-14764936)
 * the code works fine within the dev environment [chrome90, firefox 78esr] (including
   the neve theme) and is part of the related EnlighterJS class.
 * to debug your issue i need a link which shows the issue…otherwise i’m unable 
   to provide any help
 *  Thread Starter [mamounrajab](https://wordpress.org/support/users/mamounrajab/)
 * (@mamounrajab)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/vertical-scroll-8/#post-14766683)
 * [https://lahtech.tech/latex-%D9%84%D8%A7%D8%AA%D8%A7%D9%83/%d8%b5%d9%86%d8%a7%d8%af%d9%8a%d9%82-latex-%d8%ac%d9%85%d9%8a%d9%84%d8%a9-6/](https://lahtech.tech/latex-%D9%84%D8%A7%D8%AA%D8%A7%D9%83/%d8%b5%d9%86%d8%a7%d8%af%d9%8a%d9%82-latex-%d8%ac%d9%85%d9%8a%d9%84%d8%a9-6/)
 *  Plugin Author [Andi Dittrich](https://wordpress.org/support/users/andi-dittrich/)
 * (@andi-dittrich)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/vertical-scroll-8/#post-14767152)
 * it works as expected using the code above
 *     ```
       .enlighter-default{
           overflow-y: scroll;
           max-height: 100px;
       }
       ```
   

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

The topic ‘Vertical Scroll’ is closed to new replies.

 * ![](https://ps.w.org/enlighter/assets/icon-256x256.png?rev=1215872)
 * [Enlighter - Customizable Syntax Highlighter](https://wordpress.org/plugins/enlighter/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/enlighter/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/enlighter/)
 * [Active Topics](https://wordpress.org/support/plugin/enlighter/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/enlighter/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/enlighter/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [Andi Dittrich](https://wordpress.org/support/users/andi-dittrich/)
 * Last activity: [4 years, 9 months ago](https://wordpress.org/support/topic/vertical-scroll-8/#post-14767152)
 * Status: not resolved