Tag Archives: Superfish

Drupal 7 – Center a horizontal nice menu

Nice Menus is a must have module for all my Drupal 7 projects. It helps creating horizontal menu in just a few minutes.

The horizontal menu is aligned to the left by default. Here is a small CSS trick for you to align the menu in center and it also works for Superfish menu.
Continue reading Drupal 7 – Center a horizontal nice menu

Superfish – Add active class to current menu link

Superfish is a jQuery plugin for creating drop down menu. You can download it @ GitHub – karevn / superfish.

It works well but there is no CSS class for identifying the menu item of the current page. Luckily i found a solution in StackOverflow.

The following jQuery code will find out the menu item which match the current URL and add the active class to it. Continue reading Superfish – Add active class to current menu link