CSS by T. Afif :verified: on Nostr: One use case for getting the width/height of any element is to be able to count a lot ...
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/
#CSS #HTML
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/
#CSS #HTML