Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

Full Width Menu with Equally Padded Elements using jQuery

An extremly simple jQuery plugin to create menu which sits on top of a container taking up its full width and has equally padded menu elements

Motivation

  • My first jQuery plugin

Requirements

Usage (API)

The plugin is issued on the container for which the menu should take up the full width.

$('#main-container').fullWidthMenu();

Settings are passed as an object literal.

$('#main-container').fullWidthMenu({
  'menuItems'    : '#menu ul li', // The menu items selector. May also be passed as a jQuery object e.g. $('#menu ul li')
  'menuItemLink' : 'a'            // A child (selector) of the menuItems in which the text of the menu item is wrapped (usually a link tag I guess)
});

More

About

Full Width Menu with Equally Padded Elements using jQuery

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages