CSS Question

Started by Heretic86, August 18, 2021, 11:06:02 pm

Previous topic - Next topic

Heretic86

I need to make a Text Area behave like a DOS prompt

Basically so it wraps and spaces are placed like they are in a DOS / CMD window...

This might display a little better...

Current Scripts:
Heretic's Moving Platforms

Current Demos:
Collection of Art and 100% Compatible Scripts

(Script Demos are all still available in the Collection link above.  I lost some individual demos due to a server crash.)

KK20

The absolute closest you can get with just CSS and a textarea alone is to add
white-space: break-spaces;
word-break: break-all;
You will still have one remaining bit of jankiness: when you get close to the right edge and try to add a space after a letter (knowing it will go to the next line), that letter will also move down along with the whitespace character.

Other Projects
RPG Maker XP Ace  Upgrade RMXP to RMVXA performance!
XPA Tilemap  Tilemap rewrite with many features, including custom resolution!

Nintendo Switch Friend Code: 8310-1917-5318
Discord: KK20 Tyler#8901

Join the CP Discord Server!