Source code
Revision control
Copy as Markdown
Other Tools
<?xml version="1.0" encoding="utf-8"?>
<head>
<title>Drag feedback for partly visible element: relative position</title>
<style type="text/css">
div
{position:relative;
top:-150px;
left:-150px;
height:200px;
width:200px;
background-color:navy;}
</style>
</head>
<body>
<div draggable="true" ondragstart="event.dataTransfer.effectAllowed = 'copy'"/>
<p>Try to drag blue box above. Feedback overlay should be square.</p>
</body>
</html>