Given some text that occupies about 10 rows, how can I resize its container to only show the first 3 rows and hide the others? Apparently this works, but I think it is not relia
Use rem:
rem
.container { height: 3rem; /* 1rem for each visible line */ overflow: hidden; }