Join MDN and developers like you at Mozilla's View Source conference, 12-14 September in Berlin, Germany. Learn more at https://viewsourceconf.org

:-moz-drag-over

Non-standard
This feature is non-standard and is not on a standards track. Do not use it on production sites facing the Web: it will not work for every user. There may also be large incompatibilities between implementations and the behavior may change in the future.

Summary

The :-moz-drag-over CSS pseudo-class is used to edit an element when a drag-over event is called on it.

Syntax

element:-moz-drag-over { style properties }

Example

CSS

td:-moz-drag-over {
  color: red;
}

HTML

<table border="1">
  <tr>
    <td width="100px" height="100px">Drag Over</td>
  </tr>
</table>

Result

Document Tags and Contributors

 Contributors to this page: Sebastianz, teoli, Sheppy, Marsf, Zibibbo84
 Last updated by: Sebastianz,