My goal is to monitor a
<div id="please_monitor_me">
to determine if it is visible. If it is not visible, I plan to remove the margin (margin: 0;
).
I am aiming for no margin when the div is not visible so that it can be shown later with a burger button.
https://jsfiddle.net/4tusk977/
During mobile view activation and when the burger button is displayed and clicked, my intention is to eliminate unnecessary margins on the top and bottom of the form.