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. 😜
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 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.
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.
not a single RUclipsr 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
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. 😜
i was always confsed as to how clamp worked, but i found this channel, now it all makes sense .... you got a new sub
Awsome, this solves an issue I was having. Thanks
Should you not be using rem or em instead of px for the max and min sizes?
really helpful!
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).
Extremely helpful thank you!
Thank you so much! Really helpful ✌️
Great tutorial. Thank you.
Best video so far
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.
Awesome video. Thank you so much.
Happy to help! :)
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.
thanks for this.
thankyouu bro you got a sub
Interesting new thing, thank you 🤙
it is a very good video one of my favorites
Thank you!
Brother what about the line height?
which using vs cde theme?
Andromeda!
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
Font clamp not working for samsung galaxy mobiles
Great 🎉
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.
Did you take this from Kevin Powell ??
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?
Can I use clamp and media query at the same time?
Definitely! :)
Font clamp size not working different devices pls tell the solution sir .....
not a single RUclipsr 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!
Wasting too much of time in video instead ( Get inspired from @Fireship )
speak a little slow
0.5x will be better for u