Response title
This is preview!
<div class="container">
<div class="draggable"></div>
</div>
$('.draggable').draggable({
containment: ".container"
});
.container{ width : 250px; height : 250px; margin: 70px 0 0 70px; border : solid 1px #333; -ms-transform: rotate(45deg); /* IE 9 */ -webkit-transform: rotate(45deg); /* Chrome, Safari, Opera */ transform: rotate(45deg); } .draggable { position: relative; cursor: pointer; width : 100px; height : 100px; border:solid 1px #f00; }
© 2013 jQuery Foundation
Sponsored by and others.