JSFiddle - React, Tailwind, and code Playground

http://stackoverflow.com/questions/7311491/dynamically-position-a-div-in-the-top-left-of-a-resizable-element-in-jquery-ui

HTML

<div id="foxnote">
<textarea id="theFoxNote">
Type in your note...
</textarea>
<div style="clear: both; height: 1px;">&nbsp;</div>
<p class="noteMeta"><a href="#" id="foxNoteOptions">Options</a> <a href="#" id="deleteFoxNote">Delete</a>
<p class="save"><a href="#" id="saveFoxNote">Save</a></p>
</div>

<script type="text/javascript">
$('#foxnote').dialog({

title: 'NoteFox',

});
</script>

CSS

.ui-dialog{
    
}
.ui-dialog-titlebar{
    background: url(http://psdesignzone.com/help/images/notebg.png) repeat-x;
    overflow: hidden;
    cursor: move;
    border: 1px solid #666666;
    border-width: 1px 1px 0 1px;
    padding: 0;
    border-top: 1px solid #999;
    border-left: 1px solid #999;
}
#ui-dialog-title-foxnote{
    font-size: 0.01em;
    color:#fff;
    text-indent: -20000px;
    background: url(http://psdesignzone.com/help/images/title.png) no-repeat;
    margin: 0; padding: 0;
    width: 52px; height: 14px;
    display: block;
    float: left;
}
.ui-dialog-titlebar-close{
    display: block;
    float: right;
    width: 52px;
    height: 14px;
    font-size: 0.01em;
    color: #fff;
    text-indent: -20000px;
    background: url(http://psdesignzone.com/help/images/hide.png);
}
#theFoxNote{
    width: 100%;
    height: 100%;
    border: none;
    background: none;
    resize: none;
    padding: 2px;
    font-size: 11px;
    font-family: Arial, Helvetica, sans-serif;    
}
#foxnote{
    background: url(http://psdesignzone.com/help/images/textboxbg.png) bottom center repeat-x;
    border: 1px solid #666666;
    padding: 1px;
    border-top: 1;
    border-left: 1px solid #999;
    padding-bottom: 25px;
}
.ui-resizable-se{
    display: block;
    float: right;
    background: url(http://psdesignzone.com/help/images/resize.png) no-repeat;
    width: 16px; height: 15px;
    cursor: se-resize;
    position: relative;
    top: -22px;
    left: -2px;
}
.noteMeta{
    padding: 0; margin: 0;
    height: 15px;
    font-size: 12px;
    font-family: Arial, Helvetica, sans-serif;
    position: relative;
    top: 0;
    float: left;
    left: 5px;
}
.noteMeta a{
    color: #000;
    text-decoration: none;
    font-weight: bold;
}
#foxNoteOptions{
    display: block;
    float: left;
    background: url(http://psdesignzone.com/help/images/settings.png) no-repeat;
    height: 17px;
    padding: 1px 0 0 18px;
    margin-right: 5px;
}
#deleteFoxNote{
    display:...