JS sliding gallery
JS sliding gallery
Out of context: Reply #5
- Started
- Last post
- 13 Responses
- ismith0
Okay really quick– how do I make this work for each element? It's fucking up with multiple elements and I'm not sure where/how to tell it to apply to each element.
jQuery.fn.valign = function() {
$(this)
.wrapInner('<div class="valign-box"></div>')
.css("position", "relative");xH = $(this).children('.valign-box...
$(this).children('.valign-box')
.css({
"position" : "absolute",
"height" : xH,
"top" : "50%",
"margin-top" : 0-(xH/2)
});
};