Great video. I have a few suggestions, though - it would be better to use 1rem + 8vw for the second argument of the clamp function to be able to scale the text depending on browser zoom or user preferences for font size. Also, the same goes for using rems instead of pixels (in your case 50px and 100px would probably be best replaced with non-fixed values).
I had no idea how to set the middle value despite seeing it used in many videos. All clear now. Liked and subscribed now. Don't let me down, keep me properly sized. 😜
Okay, great! Now use this in a real-world development example where you have 3 monitor sizes; 1920 x 1080, 3840 x 1600, and 5120 x 2800. Use this on containers, headers, footers, etc. It's not as easy are you making it out to be.
I wonder if there is a way to create a 'reverse clamp' for vw? On a desktop, I might want the website logo to be 10vw but on mobile I'd want it 20vw. I haven't found any solution as yet.
not a single TH-camr shows how such typography works for text at least in 2 lines, everyone takes 2-3 words and says wow look one line... In real examples you will have to add another media query to edit the font sizes otherwise they may be smaller than they could be... The video is just clickbait! There is no solution for fonts in one line!
Never used clamp before because I didn't understand how it work. I do now. You've got a new sub! Thanks
Great video. I have a few suggestions, though - it would be better to use 1rem + 8vw for the second argument of the clamp function to be able to scale the text depending on browser zoom or user preferences for font size. Also, the same goes for using rems instead of pixels (in your case 50px and 100px would probably be best replaced with non-fixed values).
I had no idea how to set the middle value despite seeing it used in many videos. All clear now. Liked and subscribed now. Don't let me down, keep me properly sized. 😜
Awsome, this solves an issue I was having. Thanks
i was always confsed as to how clamp worked, but i found this channel, now it all makes sense .... you got a new sub
Extremely helpful thank you!
Thank you so much! Really helpful ✌️
Should you not be using rem or em instead of px for the max and min sizes?
Great tutorial. Thank you.
Best video so far
Awesome video. Thank you so much.
Happy to help! :)
thankyouu bro you got a sub
thanks for this.
Okay, great! Now use this in a real-world development example where you have 3 monitor sizes; 1920 x 1080, 3840 x 1600, and 5120 x 2800. Use this on containers, headers, footers, etc. It's not as easy are you making it out to be.
And I would like to add pixel-ratio for retina screens!
If someone can give me a solution how to do that?
Note how he didn’t even respond😂 he can’t be bothered
Should I use userAgent and dppx?
If it is single line clamp function is ok, but when the text is in multiple lines what about the line height? It should also change accordingly.
Interesting new thing, thank you 🤙
it is a very good video one of my favorites
Thank you!
Great 🎉
Try to zoom in or out now.... font will remain the same size, don't use vw alone and px are not a good way to set font sizes, use rem or em
I wonder if there is a way to create a 'reverse clamp' for vw? On a desktop, I might want the website logo to be 10vw but on mobile I'd want it 20vw. I haven't found any solution as yet.
Brother what about the line height?
Font clamp not working for samsung galaxy mobiles
Did you take this from Kevin Powell ??
which using vs cde theme?
Andromeda!
stupid question: this will work for any font?
yes and not just font
@@oliseoseji8868I wasn't able to get it to work on firefox, latest version.
Font clamp size not working different devices pls tell the solution sir .....
Can I use clamp and media query at the same time?
Definitely! :)
speak a little slow
Wasting too much of time in video instead ( Get inspired from @Fireship )
not a single TH-camr shows how such typography works for text at least in 2 lines, everyone takes 2-3 words and says wow look one line...
In real examples you will have to add another media query to edit the font sizes otherwise they may be smaller than they could be...
The video is just clickbait! There is no solution for fonts in one line!