🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

How to constrain text in javascript

Started by
2 comments, last by 8Observer8 5 years, 3 months ago

I am trying to create a text adventure, but long strings don't span multiple lines.  They simply make one extremely long string, which is hideous.  How would you avoid that?

I am an indie game developer who enjoys pixel art games.

Advertisement

They will span lines if you change certain style value of your whatever container for text you have. It should be overflow and text-overflow

Please, save your example in Sandbox and give us a link.

This topic is closed to new replies.

Advertisement