The clamp() function is a great example of how CSS keeps evolving with the demands of website design. Instead of having to write an algebraic formula for fluid typography, clamp() will do all the work for us.
@thecodercoder Yeah and the old school greybeard says CSS is supposed to be declarative or was. That's not declarative. Nor is it semantics. Oh well Time Marches On
@thecodercoder @smashingmag I'd suggest to use 2 declarations so IE, and a few others, are not left out: h1 { font-size: xx; /* for browsers that don't support clamp() */ font-size: clamp(xx, xx, xx); /* for browsers that support clamp() */ }
@thecodercoder I don't get it , in every example I see for clamp why does the preferred value uses different unit? Is it a convention?
@thecodercoder I didn't know CSS could do this 👏 I've been using clamp() in After Effects expressions and writing my own JS polyfills for years because I love it in AE
@thecodercoder Hey Jessica! Nice Tip! Is VW and VH another good form of responsive typography and size?
@thecodercoder I love this one! Thank you for sharing
@thecodercoder I have to try this one.
@thecodercoder I thought it looked responsive, this should flow well on all three platforms, mobile,tablet and desktop
@thecodercoder Nice I might use this today actually😂
@thecodercoder still dont understand about term "algebraic formula for fluid typography", can you explain more? or any resource regarding this? 🤔is it something for responsive typography?
@thecodercoder Wow never heard of this before... Thanks for this
@thecodercoder I was literally just thinking about how to achieve this yesterday. Thank you!
@thecodercoder This is awesome!! Would this work, & be preferred, for media queries? I could see this being hella responsive to such.