No building shall hereafter be erected or altered to accommodate or house a greater number of families, seasonally or permanently, to occupy a greater percentage of lot area, or to have narrower or smaller rear yards, front yards, side yards, and inner and outer courts than is specified herein for the district in which such building is or is proposed to be located.