HTML5 drag and drop on the body
When the body element as a drop target on pages that don't have a lot of other content make sure to set:
html, body {
height: 100%:
}
If you don't you may not trigger the drag events due to the body being too short.
Written by Bala Clark
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Html5
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#