Source code

Revision control

Other Tools

<!DOCTYPe html>
<meta charset='utf-8'>
<title>drag and drop – draggable area boundaries, border-radius</title>
a {
display: block;
height: 200px;
width: 200px;
background-color: blue;
border-radius: 100px;
div {
border: 1px solid black;
height: 200px;
width: 200px;
<li>Try dragging the white area within the black square, outside the blue
circle. It should <em>not</em> be draggable.</li>
<li>Drag the blue circle below. It should be draggable.</li>
<div><a draggable="true" ondragstart="event.dataTransfer.effectAllowed ='copy'"></a></div>