need to guard against environments where the margins on inputs and selects have been set to zero