Fix super string length

Hi experts,

Would you show me how to display the string"any character"  to the next line whenver the line reach is reaching maximum size on the monitor?

Please don't do javascript


The below is just the hmtl script that will make the screen display very ugly.
If I want to to see the message I have to pull the bar back and forth which is not so convenience.

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

is that really the case? if there are enough spaces or breaks in your text it will break and fit in the browser width
Here's one way to break it up VISUALLY without breaking it up physically: just insert <wbr> tags wherever. Select, copy, paste then will still get you the unbroken text, but the <wbr> allows it to have a visual line break
Why you don't make use of <table> tags
CompTIA Security+

Learn the essential functions of CompTIA Security+, which establishes the core knowledge required of any cybersecurity role and leads professionals into intermediate-level cybersecurity jobs.

what you sure <wbr> or <br>

if you mean <br> then I will not take this answer.

The reason is I have no control what user input on the form.
<wbr> not <br>
<br> breaks unconditionally & selected text also gets a <br>
<wbr> breaks conditionally (only if text overflows), but leaves no break at the <wbr> when the text is selected
The correct way would be to insert <wbr> or <br> tags with a server-side language, such as php.
Alternatively, you may use javascript.
You don't want javascript, so all that's left is to present the text INSIDE a textarea or an iframe, e.g.

<textarea cols="100" rows="5" style="border:0px">

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
E.g. experts-exchange server used jsp (=server side) to convert the source code of the message I've just posted to
<br />ssssssssssssssssssssssssssssssssssssssss<wbr/>ssssssssss<wbr/>ssssssssss<wbr/>ssssssssss<wbr/>ssssssssss<wbr/>ssssssssss<wbr/>ssssssssss<wbr/>ssssssssss<wbr/>ssssssssss<wbr/>ssssssssss<wbr/>ssssssssss<wbr/>ssssssssss<wbr/>ssssssssss<wbr/>ssssssssss<wbr/>ssssssssss<wbr/>ssssssssss<wbr/>ssssssssss<wbr/>ssssssssss<wbr/>ssssssssss<wbr/>ssssssssss<wbr/>ssssssssss<wbr/>ssssssssss<wbr/>ssssssssss<wbr/>ssssssssss<wbr/>ssssssssss<wbr/>ssssssssss<wbr/>ssssssssss<wbr/>ssssssssss<wbr/>ssssssssss<wbr/>ssssssssss<wbr/>ssssssssss<wbr/>ssssssssss<wbr/>ssssssssss<wbr/>ssssssssss<wbr/>
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.