spartanatreyuspartanatreyu@mastodon.social
Jul 29, 2024, 11:17 PMretooted CSS by T. Afif :verified:
One use case for getting the width/height of any element is to be able to count a lot of things.
Here is an example where I am counting the lines of text. There is no JavaScript, and the number adjusts based on the content you enter.
Online Version: https://css-tip.com/count-lines/