Currently, I am in the process of designing a banner that will only be displayed when necessary. I am looking for techniques to achieve this goal effectively.
Is there a way to align text centrally only if it fits on one line and does not wrap onto a new line? When using text-align:center property, long sentences that span multiple lines result in the second line also being centered, which is not desired. Are there any CSS or HTML tricks to address this issue?
I would greatly appreciate any ideas or tips you may have.