Downloads

Download tar.gz 7.07 KB
MD5: dc97427b8878d817596931bb805cabc5
SHA-1: a187d6f629c2915fec8583038df7f036c6ab6c64
SHA-256: f96c7ea8f10aca6cf983558b9189357920819e1104e229db63140fa187084509
Download zip 8.09 KB
MD5: 507a60fc574ae735740a0184ca7ac45d
SHA-1: 7608edd5acf433e118af5b3ba578e55101146aa3
SHA-256: 25940ff4034e2ca4eae46c17a430c175089cc792bbdee8a19eac09e3ee10c911

Release notes

menu_css_names 1.0

This is a very simple module that takes the title of each drupal menu item and
adds it as a css class name to the menu's <li> element. Any character from
this title that is not an alphanumeric character, dash, or underscore is
converted to a dash; all letters will be converted to lowercase.

Using these class names, css can be used to style each menu item separately as
needed or css sprite techniques can be used. For a menu item whose title is
"Product Information", a typical css rule would look like this:

ul.menu li.product-information { font-style: bold; }

There are no admin settings for this module, it starts doing its work once
the module is enabled. All caches are automatically cleared at this time also.

Created by: rc_100
Created on: 6 Oct 2009 at 00:41 UTC
Last updated: 6 Oct 2009 at 00:47 UTC
Unsupported

Other releases