I was looking for a nice lib for generting sound effects and finally came to find this sweet little website:

https://killedbyapixel.github.io/ZzFX/

Not here to talk about sound, but more about how text font-size value remains constant, yet visually change when redimensioning the window (with chrome dev tools, using responsive display). See pictures below.

r/webdev - Text font-size value remains constant, yet visually change when redimensioning the window? What is this sorcery?

Here everything is normal, font-size is 18px. OK.

r/webdev - Text font-size value remains constant, yet visually change when redimensioning the window? What is this sorcery?

After redimensioning the window, the text appears to have changed… But not its font-size value !

Does anyone knows how this have been done? I checked the code, and found nothing about this (I think you guessed it, I am a beginner, so I might have missed the obvious).

Any help would be nice !

Cheers all !



Source link

Write A Comment