#jQuery Alignment Plugin
Plugin to align an Element to another.
##Features
- vertical align
- horizontal align (works most like
margin: 0 auto; - minimum Values for left an top position
- each element can be aligned to evey other element
##How to use
###align to window
$("#some-element").align();###align to another Element
$("#some-element").align({'parent':'#the-parent'});##auto-update on window-resize
$(document).ready(function(){
$(window).resize(function(){
$("#some-element").align();
});
});##Options
| key | type | default | description |
|---|---|---|---|
| parent | jQuery Selector | window | the Element where 'this' is aligned to |
| vertical | boolean | true | enable/disable vertical alignment |
| horizontal | boolean | true | enable/disable horizontal alignment |
| minLeft | integer or false | 0 | minimum Left Offset of 'this'. (false disables this feature) |
| minTop | integer or false | 0 | minimum Top Offset of 'this'. (false disables this feature) |
##Compatibility this Version has been tested with jquery 2.0.1 only, but should work on earlier version as well.