apply margin to element