Source code
Revision control
Copy as Markdown
Other Tools
<!DOCTYPe html>
<meta charset='utf-8'>
<title>drag and drop – feedback overlay for heavily styled elements – 004</title>
<style>
a {
display: block;
height: 200px;
width: 200px;
background-color: blue;
box-shadow: 10px 10px 10px gray;
}
div {
background-color: orange;
}
</style>
<p>Drag the blue box below downwards. The drag placeholder should resemble the blue box. It may optionally also include the box's shadow, but must not include the orange rectangle.</p>
<div><a href='#' draggable="true" ondragstart="event.dataTransfer.effectAllowed ='copy'"></a></div>