Except as hereinafter provided, no building shall hereafter be erected or altered so as to occupy any required yard, nor shall any side, rear or front yard be narrower or smaller than is required for the zoning district in which it is located, except as provided in section 38-254.