Text overflow CSS | Sololearn: Learn to code for FREE!


Text overflow CSS

How do I make the text overflows like in this awesome code of Tristan? New text stuck at the bottom and old text scroll upwards. I try the overflow:auto in css but old text stuck at the top and I have to scroll down to see new text. I hope my question makes sense 😁 https://code.sololearn.com/WqjnZwxCjq7N/?ref=app

9/27/2018 4:41:02 AM

Fernando Moceces

2 Answers

New Answer


line 33-36 if (index < message.length) { pre = document.getElementById('style-text'); pre.scrollTop = pre.scrollHeight; writeStyleChar(message[index++]);


Thank you! You're my favorite person of the day 😁