--- Revision None +++ Revision 383039393034 @@ -0,0 +1,14 @@ +jQuery.fn.valign = function() { + $(this) + .wrapInner('
') + .css("position", "relative"); + + xH = $(this).children('.valign-box').height(); + $(this).children('.valign-box') + .css({ + "position" : "absolute", + "height" : xH, + "top" : "50%", + "margin-top" : 0-(xH/2) + }); + };