<div class="inner"> hello world </div>
.outer{ border: 1px solid #ccc; padding: 10px; }
$(".inner").wrap("<div class='outer'><div class='outer'></div></div>")
This Pen is owned by deathhell on CodePen.
See more by @deathhell on CodePen
This Pen doesn't use any external CSS resources.