add margins to text elements