There are dozens of threads out there but after wasting 2 days I still can´t find a solution: I´m trying to create a website with an "infinite scrolling" function. By scrolling to the bottom of the page this is beeing triggered:
$(window).scroll(function() {
if($(window).scrollTop() == $(document).height() - $(window).height()) {
$.ajax({
url: "loadMoreComments.php?lastComment="+ $(".allvideos:last").attr('id') ,
success: function(html) {
if(html){
$(html).appendTo(".portfolioContainer");
}
}
});
}
});
...so the content I would like to append (html) is generated within "loadMoreComments.php". The problem is that the new appended content has no css styling applied to it. This is how the new content looks inside the source code (after appending):
The styling is applied to the ids 1-7 but the newly generated "figures" (ids 8-10) are without any styling. Eventhough they are generated exactly the same way the others are created. Oviously my whole layout goes crazy. Any solutions? Thx.
EDIT: I´m using this bootstrap template: click.... to generate the tiles / figures.

styleattribute - I'm assuming you are doing this via JavaScript, so could you please post the relevant bit of your code that deals with this?