Why Nostr? What is Njump?
2024-07-31 12:59:46

Thomas Michael Semmler on Nostr: I am facing a somewhat new challenge, which is that I am attempting to calculate a ...

I am facing a somewhat new challenge, which is that I am attempting to calculate a font-sizes with javascript, that will make sure that a user-provided text will always fit a box.

As in, if I just type a single character, it is supposed to be as large as possible and if I type a lot, it is supposed to be as small as necessary to still fit the whole text.

Haven't done something like this before tbh.

#webdev #javascript #css
Author Public Key
npub1lpjsp4e4aguw8frxw67dwpspzygj06e5d25qvupyqaev3dema0zssa5j0h