define max and min content offset