added support for elements that already have top margins