converted padding and margins to percentages