A municipal corporation may regulate the light, ventilation, sanitation and use and occupancy of buildings heretofore or hereafter constructed, altered, remodeled or improved, and the sanitation of premises surrounding the building.
Va. Code § 15.2-1117