In districts “A,” “B,” “B-1,” “B-2,” “C,” and in all other districts where a building is erected or structurally altered for dwelling purposes there shall be two (2) side yards, one on each side of the building having combined width of not less than twenty (20) percent of the width of the lot, provided that in no case shall either side yard be less than five (5) feet, and provided further that the combined widths of the two (2) side yards need not exceed twelve (12) feet. In the “D” district where a building is erected or structurally altered for dwelling purposes, said building shall have side yards of not less than ten (10) feet from the property line and they shall have a back yard of not less than five (5) feet from the property line.