Description
vAlignMiddle is a jQuery plugin providing cross-browser vertical centering. It is intended primarily for circumstances where the height of elements to be vertically centered is not known at design-time. For example, a menu bar where anchor elements are to be vertically centered in a list and some, but not all, have wrapping lines of text (see demo download).
## Usage ##
jQuery("element(s) to be centered").vAlignMiddle(options);
## Options ##
An Object consisting of two optional parameters:
1. addToTop: a Number (may be negative) used to move the centered item up or down as needed.
2. debug: a Boolean that toggles the display of element height information printed to the Firebug console (or other solution supporting console.log()).
## Demo ##
See demo under "Featured Downloads" to the right of this page.
## Example ##
```
文 件 列 表
demo.html
js
jQuery.vAlignMiddle.js
jQuery.vAlignMiddle.min.js