An easy way to vertical align elements with one line of code:
- invalid argument jquery J[G]=K
It's fairly easy to structure your html to not require a vertical align offset so it's really not needed anyways.
It also supports a couple of parameters:
offset = the number of pixels to offset the vertical alignment usePadding = true/false. the default is false which uses a margin to align, if set to true, it uses padding
Get the source: VerticalAlign.zip (290.00 bytes)