Stretch and shrink a div by dragging
<p>Using javascript without jQuery, I'd like to enable a user to draw a rectangle that will tag photos. The rectangle is selected by dragging the mouse across the photo. As the user drags out the region the rectangle stretches and shrinks. The user can drag in any direction, including up and to the left, much like the draggable rectangle on most computers' desktops. What are the style attributes of a div object I should set? </p>

<hr>

<p><strong>Edit</strong>: I'm just looking for the right attribute to set to drag the div edge. </p>
