How to make such auto-scrolling given fixed height of container ?

https://www.eletypes.com/ In this site when you type and reach second line the first line automatically pushed up. I'm using react to build such application and I don't know whether it can be done from css or js
Ele Types
An elegant typing test website.
No description
3 Replies
Bismuth
BismuthOP11mo ago
if you see the .type-box container in above site it has fixed height and content is pushed up. Initially i though it might using top property to push content up and setting line height will do it but there is no such thing.
clevermissfox
clevermissfox11mo ago
Align-content: center maybe? I can't look at the site right now but first thought is how it aligns in the container
Bismuth
BismuthOP11mo ago
I think you didn't understand what i mean if you see the above picture there are 3 lines, when i end up typing second line my first line is pused up and second line is on first line and new line added in 3 line.
Want results from more Discord servers?
Add your server