JSFiddle - React, Tailwind, and code Playground
HTML
<button id="remove">Remove</button>
<button id="append">Append</button>
<div id="container">
<img src="http://dummyimage.com/300x200/000/fff" class="image" alt=""/>
<h1>Header</h1>
<p>Wall of text Wall of text Wall of text Wall of text Wall of text Wall of text Wall of text Wall of text</p>
<p>Wall of text Wall of text Wall of text Wall of text Wall of text Wall of text Wall of text Wall of text</p>
<p>Wall of text Wall of text Wall of text Wall of text Wall of text Wall of text Wall of text Wall of text</p>
<p>Wall of text Wall of text Wall of text Wall of text Wall of text Wall of text Wall of text Wall of text</p>
<p>Wall of text Wall of text Wall of text Wall of text Wall of text Wall of text Wall of text Wall of text</p>
</div>
CSS
#container {
border: solid 1px red;
padding: 15px;
}
.image {
float: left;
}
p {
text-align: justify;
}
JavaScript
var image = jQuery(".image");
jQuery("#remove").click(function(){
var image = jQuery(".image").remove();
});
jQuery("#append").click(function(){
jQuery("#container").append(image);
})