It shall be unlawful to store building materials or occupy a street, or temporary sidewalk, in front of any one building, in excess of one-third of the width of the same, or to erect any enclosure or store or place any material within eight feet of any street or railway tracks.