The opinion of the court was delivered by
Johnston, J.:
L. M. Crawford brought this action to enjoin the city of Topeka and its street commissioner from tearing down and removing billboards, fences and other structures upon which advertisements were posted. It appears that Crawford, under agreements with the owers of lots in different parts of the city, had erected upon the line of the lots structures similar to closely built fences, which were from 8 to 10 feet in height, upon which to post bills and advertisements of shows and entertainments which were to occur at his opera house in the city. In some cases structures like fences which were already upon the lots were used by him for this purpose, and in other cases the agreements with the owners provided that the structures should inclose the lots as a fence. Many of them had been in use for several years, and in March, 1890, the street commissioner notified Crawford that they must be taken down and removed within five days, so as to conform with a certain ordinance, or the commissioner would remove them. From the testimony, it appears that most of them were substantial and safe structures, and the objection by the city authorities was not that they were insecure, but rather that they did not comply with the provisions of an ordinance previously passed. It provides that
“No person shall erect any billboard or other structure for advertising purposes, unless the same is placed at such distance from the line of any street or sidewalk as shall exceed at’least five feet the height of such billboard or structure; nor shall any person attach any sign or bulletin to any lamp-post *761in this city; and any person found guilty of violating any provision of this section shall, on conviction, be fined in a sum not less than $3 nor more than $20 for each offense, and each day’s continuance after conviction shall be deemed a separate and distinct offense.”
The reasonableness of this regulation and the validity of the ordinance were the principal subjects of contention in the court below, and the ones presented for decision here. At the end of the trial, the temporary injunction originally granted was dissolved, and the relief asked by the plaintiff was denied.
i citiesSuíS'naiTie ordinance.
*762
2'Erigiíttolrect.;
*761We think the ordinance is not reasonable nor valid; hence the ruling of the court cannot be sustained. As has been seen, it proscribes the erection or use of any structure near the lot line for advertising purposes, no matter how substantial and secure it may be. Municipalities may be and are vested with large powers in protecting the health and safety of the people, and in promoting the welfare of the public. They have been given authority to prevent and remove nuisances, to protect the walks and ways, and, where they are dangerous, may compel the owners of adjacent property to erect and maintain railings, safeguards and barriers along the same. They may enter and inspect all dwelling houses, yards, inclosures, and buildings, to ascertain whether any of them are in a dangerous state, and may take down and remove such structures as have become insecure or dangerous; and, further' may require the owners of insecure and dangerous buildings and other erections to render the same secure and safe, at the owner’s cost. They may regulate the use of the streets and public grounds, and may regulate or prohibit awnings and awning posts, and all other structures projecting upon or over the street or sidewalk. Fire limits may be established, within which the erection of wooden buildings or structures which would readily communicate fire may be prohibited. (Gen. Stat. of 1889, ¶ 555.) In none of these provisions do we find anything which warrants the city to prohibit the *762erection of safe and substantial structures on any portion of a lot, if, indeed, any such power can be given. Iu general, it may be said that the owner of real estate has the right to erect such buildings or other structures upon it as he may please, and put the premises to any use which may suit his pleasure, providing that he does not in doing so imperil or threaten harm to others. (Tied. Lim. 439.) All statutory restrictions of the use of property are imposed upon the theory that they are necessary for the safety, health or comfort of the public; but a limitation without reason or necessity cannot be enforced. In what way can the erection of a;safe structure for advertising purposes, near the front of a lot, endanger public safety any more than a like structure for some other lawful purpose? Why does the posting or painting of an advertisement upon a secure wall or structure render it insecure? An owner may desire to use a structure or billboard for an inclosure of his lot, as well as for posting advertisements. In one instance that was the desire and purpose of the owner in this case. If the wall or inclosure was 10 feet high, then under the ordinance the owner would be required to set it back 15 feet from the front of the lot. What reason is there for the surrender or loss of the use of that portion of the lot? or why should the pasting of a piece of paper upon a secure inclosure make such a loss necessary? Although the police power is a broad one, it is not without limitations, and a secure structure which is not an infringement upon the public safety, and is not a nuisance, cannot be made one by legislative fiat, and then prohibited. (Yates v. Milwaukee, 10 Wall. 497; 1 Dill. Mun. Corp. 374.) It is doubtless within the power of the city to prohibit the erection of insecure billboards or other structures, require the owners to maintain them in a secure condition, and to provide for their removal at the expense of the owners in case they become dangerous. Perhaps regulations may be made with reference to the manner of construction so as to insure safety, but the prohibition of the erection of structures *763upon the lot line, however safe they might be, would be an unwarranted invasion of private right, and is without legislative authority. In Langan v. City of Atchison, 35 Kas. 318, an insecure billboard which had been fastened to the sidewalk fell upon one who was passing, and injured him. It appeared to have been in a weak and insecure condition for some time, and that the officers of the city knew that it was not erected in a safe and proper manner, and before its fall that it was in a condition to endanger persons passing upon the sidewalk. It was held that the city was liable in damages for the injury, upon the theory that it was its duty to keep the streets and walks in a safe condition for persons passing over and along them. It was further held, that it was the duty of the corporate authorities to remove or abate any nuisance, and that, under the power given to the city to prevent and remove nuisances, and to regulate all structures projecting upon or over the streets or walks, it was bound to remove or protect the sidewalk from the imperfectly-constructed and insecure billboard standing so near the sidewalk as to fall upon it. This authority sanctions the regulation of such structures so far as to make them secure; but nothing is said which would justify the prohibition of the erection of structures that are absolutely safe. None of the structures proposed to be removed extended beyond the lot, and hence are not to be regarded as if they projected over the street. The regulations as to the erection and maintenance of such structures may be made sufficiently rigid to fully protect the public; but they must be reasonable, and when they pass beyond the bounds of reason and necessity, and impair private property rights, they must be pronounced invalid. The unreasonableness of the ordinance in question is easily seen when it is considered that the mere posting of a harmless paper upon a structure changes it from a lawful to an unlawful one. A person may erect a fence around his lot without violating the ordinance; but just as soon as an advertisement is posted or painted *764thereon it is brought within the condemnation of the ordinance, and the owner is liable to prosecution and punishment.
Treating the ordinance as unreasonable and invalid, as we must, the ruling of the court below in denying the injunction was erroneous, and hence there must be a reversal.
All the Justices concurring.