Using Neat Scrollbar

Applying Scrollbars to Site-Wide Content

The Neat Scrollbar module comes with the option to apply vertical scrollbars to side-wide content such as all nodes or all blocks. You will find the configuration options under the User Interface section of the Drupal administration menu.

If site-wide options are selected, the module will apply vertical scrollbars to all nodes or all blocks, or both. The idea behind this option was to make it as easy as possible to get started and it is an appropriate choice for those who are happy to have scrollbars of consistent height throughout their website. In this case a height of 400px will be applied to the vertical scrollbar themed content. The classes .neat-scrollbar and .neat-scrollbar-blocks are used with these options and may be overridden using your theme's CSS style-sheet, if required.

  • Custom CSS Attributes

If you only require scrollbars on individual blocks or pieces of content, then it is a straightforward process of isolating the CSS ID or Class for that piece of content, and inputting it under the Options & Settings for this module. Two sections are provided, one for vertical scrollbars, the other for horizontal scrollbars.

  • Don't Forget

Installation

If you are a seasoned Drupalista you can skip this section.

Installation of the Neat Scrollbar module can be done using the Drush command 'drush dl neat_scrollbar', followed by 'drush en neat_scrollbar'. This will prompt you to install the Libraries API module, if not already there. If you aren't using Drush from the command line, you can download the module from it's Project Page and move it into your 'sites/all/modules' folder, or through your Drupal site's modules administration section.

The main purpose of this section is to provide details of the relevant jQuery plugins and other files, which are required to be installed in the 'sites/all/libraries/neat_scrollbar' folder. If you don't have the libraries folders, you should create them and ensure that you give them the appropriate file/folder permissions.

Downloads

The mCustomScrollbar plugin is provided together with various other example files. It is recommended that you only download the files listed under "Installation" below. Conveniently, you can obtain all of the files required (including the Mouse Wheel jQuery Plugin) in the following repository folders:

Subscribe with RSS Subscribe to RSS - neat-scrollbar