Every act or thing done or being within the limits of a second-class city which is declared by law or by ordinance to be a nuisance shall be a nuisance and shall be so considered in all actions and proceedings. All remedies given by law for the prevention and abatement of nuisances shall apply thereto.