I’m surprised ‘text-box-trim’ wasn’t mentioned.
It’s a CSS attribute that solves this on the web.
https://caniuse.com/css-text-box-trim
If only browsers would support it.
Until then, here’s a JS alternative.
https://seek-oss.github.io/capsize/
I’m surprised ‘text-box-trim’ wasn’t mentioned.
It’s a CSS attribute that solves this on the web.
https://caniuse.com/css-text-box-trim
If only browsers would support it.
Until then, here’s a JS alternative.
https://seek-oss.github.io/capsize/