Why doesnt the following apply the css rules to both elements?
var prevElem = $('<a href="#" class="'+ settings.prev +'" />').text('Prev');
var nextElem = $('<a href="#" class="'+ settings.next +'" />').text('Next');
container.append(prevElem, nextElem);
$(prevElem, nextElem).css('top', container.height()/2);
Its only applied to prevElem.
Please note that the dynamic elements have been added to the DOM (with their classes) so they are there.