Within any residential district, no wall or fence shall exceed 4 feet in height within or along a boundary of a front or 8 feet side yard.