converted margins and padding to percentages