Add line breaks or spaces between elements when using jQuery .append()
问题 I have a jQuery set of elements that I get from my DOM by calling: $(".some-selector"); All my elements are DIVs each in its own line. My DIVs are set CSS (among other things) display: inline-block; which prevents them from rendering as block elements (each in its own line). The problem is that when these DIV are rendered they have spaces between them because there's line break in the document between each element. I'm comfortable with that. I could of course use float:left that would get rid