The City Council shall pass ordinances as permitted by law for the employment of all necessary construction codes, and providing for the inspection and supervision for all structures and buildings within the city and for the inspection and condemnation of hazardous buildings and structures and for the removal thereof and the assessment of costs thereof. The city shall have full power to condemn all dangerous buildings or obstruction of every kind, and shall provide regulations therefor by ordinance.