Chaos Project

Game Development => General Discussion => Topic started by: Heretic86 on August 18, 2021, 11:06:02 pm

Title: CSS Question
Post by: Heretic86 on August 18, 2021, 11:06:02 pm
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...

(https://www.webucate.me/chrome.gif)
Title: Re: CSS Question
Post by: KK20 on August 20, 2021, 01:28:02 am
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.