Set margin and padding