A majority of such board shall constitute a quorum and shall enact rules and regulations, having the force and effect of law, to safeguard the health of the people of such city and prevent nuisances and unsanitary conditions, enforce the same, and provide fines and punishments for the violation of such rules and regulations.