Why append function is not working in this code?

Hi there

This is my JSfiddle

I am trying to append a block to another and give it a look of some type gallery but not working know.

Where is wrong?

you’re not appending a <div>, you’re appending the div’s content, which is empty (besides whitespace).

updated

still problem

You have 20 <p> tags added to the div, your code is doing what you have told it to do.

You have said Grab Item html (thats the <p> tag) and then add it to the <div>. Repeat. What are you trying to do exactly? you have ‘inline-block’ added to the div but that won’t do anything to the inner content.

so how can I make it like this final

@djsmithme

Thanks excatly I was looking for

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.