In any district, fences and walls shall not exceed six feet in height when erected in a required side or rear yard nor exceed four feet in height when erected within 25 feet of the front lot line or highway right-of-way, except agricultural fencing which may be eight feet in height.