Can I detect if a menu option/element dropsdown over another div/element/field

Can I detect if a menu option/element dropsdown over another div/element/field

Hello,

I have a menu that when I hover over a link it dropsdown exposing other menu options. On certain screens it drops down over input field. Making them inaccessible.

Is there a way I can detect if my dropdown menu option is displaying over another field/div?