set margin and padding