change the margin to percentage