0

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

27th Sep 2018, 4:41 AM
Fernando Moceces
Fernando Moceces - avatar
2 Antworten
+ 1
line 33-36 if (index < message.length) { pre = document.getElementById('style-text'); pre.scrollTop = pre.scrollHeight; writeStyleChar(message[index++]);
28th Sep 2018, 2:51 PM
Gordon
Gordon - avatar
0
Thank you! You're my favorite person of the day 😁
28th Sep 2018, 7:16 PM
Fernando Moceces
Fernando Moceces - avatar