margins to elemets