12G0NEe1Aiy7RDZZu2VGle changeset
| Changeset | 383039393034 (b) |
|---|---|
| Parent | None (a) |
| a | b | ||
|---|---|---|---|
| 0 | + | jQuery.fn.valign = function() { | |
| 0 | + | $(this) | |
| 0 | + | .wrapInner('<div class="valign-box"></div>') | |
| 0 | + | .css("position", "relative"); | |
| 0 | + | ||
| 0 | + | xH = $(this).children('.valign-box').height(); | |
| 0 | + | $(this).children('.valign-box') | |
| 0 | + | .css({ | |
| 0 | + | "position" : "absolute", | |
| 0 | + | "height" : xH, | |
| 0 | + | "top" : "50%", | |
| 0 | + | "margin-top" : 0-(xH/2) | |
| 0 | + | }); | |
| 0 | + | }; | |
| ... | |||
|
|