JSFiddle - React, Tailwind, and code Playground

by TJ VanToll

HTML

<link rel="stylesheet" href="http://code.jquery.com/ui/jquery-ui-git.css">
<script src="http://code.jquery.com/ui/jquery-ui-git.js"></script>
<div class="red"></div>
<div class="blue"></div>

CSS

.red {
    background: red;
    width: 50px;
    height: 50px;
}
.blue {
    background: blue;
    height: 100px;
    width: 100px;
}

JavaScript

$( ".red" ).position({
    my: "left center",
    at: "right center",
    of: ".blue"
});