I have a textarea and I want it to be justified so all the lines are equal in width and to be centered to the text stays in the middle of the textarea when it's not at maximum line length.
This is my textarea:
<textarea class="Whiteboard" type="text" placeholder="Type something..."></textarea>
...and the CSS:
textarea.Whiteboard{
resize: none;
background-color: #F1F1F1;
border: none;
height: 500px;
width: 800px;
text-align: center;
font-size: 50px;
}
Thank you all!
text-align: justify;
?? – Thunderytext-align-last
, that is supposed to change the alignment of the last line of a text... But I couldn't figure it out yet... I think the support is not wide still too.. developer.mozilla.org/en-US/docs/Web/CSS/text-align-last – Thundery