Hi,
How to move the cursor automatically to next line when it exceeds 50 characters.Thank you
How to move the cursor automatically to next line when it exceeds 50 characters.Thank you
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Jayant RajwaniRank #717 · 3.3K reputationPosted Aug 17, 2017, 4:21 AM EDT
AshokRank #2,671 · 521 reputationPosted Aug 17, 2017, 4:37 AM EDT
Jayant RajwaniRank #717 · 3.3K reputationPosted Aug 17, 2017, 5:17 AM EDT
because breaking line every 50 words may cause a lot of errors in code
so just turn on word wrap
AshokRank #2,671 · 521 reputationPosted Aug 17, 2017, 5:20 AM EDT
Rajkiran SwainRank #165 · 14.4K reputationPosted Aug 17, 2017, 6:21 AM EDT
Mukil VendhanRank #2,971 · 486 reputationPosted Aug 17, 2017, 7:28 AM EDT
You should do two things. Use the css property
'white-space: no wrap'and nest the stylized letters within a single span. Here's the updated fiddle http://jsfiddle.net/cH5tN/44/EDIT:
Also, you should avoid non-breaking spaces, just use a space unless there's a specific reason you wouldn't want the text to break on a particular space.