Responsive Typography with CSS Clamp

Sdílet
Vložit
  • čas přidán 30. 07. 2024
  • Today we're going to learn how we can use the CSS clamp function to create responsive, fluid typography!
    📚 Project Links
    code: github.com/TomIsLoading/fluid...
    🔗 My Links
    GitHub: github.com/TomIsLoading
    Twitter: / tomisloading
    Instagram: / tomisloading
    TikTok: / tomisloading

Komentáře • 28

  • @chrisicotec7652
    @chrisicotec7652 Před 2 měsíci

    i was always confsed as to how clamp worked, but i found this channel, now it all makes sense .... you got a new sub

  • @mikhaillav
    @mikhaillav Před 5 dny +1

    Thank you so much! Really helpful ✌️

  • @koresaliva
    @koresaliva Před 16 dny +1

    Extremely helpful thank you!

  • @johan.svensson
    @johan.svensson Před 24 dny +1

    Great tutorial. Thank you.

  • @markoseovac3185
    @markoseovac3185 Před rokem +1

    Interesting new thing, thank you 🤙

  • @adityarajgor6763
    @adityarajgor6763 Před 11 měsíci

    Best video so far

  • @user-lc2cb8io6w
    @user-lc2cb8io6w Před 4 měsíci +1

    thanks for this.

  • @thexpand
    @thexpand Před rokem +11

    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).

  • @victoradeniji4554
    @victoradeniji4554 Před 6 měsíci +1

    Awesome video. Thank you so much.

  • @dileepbatchala1590
    @dileepbatchala1590 Před rokem +2

    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.

  • @AlThePal78
    @AlThePal78 Před 9 měsíci +1

    it is a very good video one of my favorites

  • @rg-web-design
    @rg-web-design Před 3 měsíci

    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.

  • @dileepbatchala1590
    @dileepbatchala1590 Před rokem

    Brother what about the line height?

  • @OCEMTechZone
    @OCEMTechZone Před 5 měsíci +1

    Great 🎉

  • @juanortegaa6916
    @juanortegaa6916 Před 11 měsíci +2

    Did you take this from Kevin Powell ??

  • @sanjeevd6872
    @sanjeevd6872 Před rokem

    Font clamp not working for samsung galaxy mobiles

  • @benburakk
    @benburakk Před rokem

    which using vs cde theme?

  • @sanjeevd6872
    @sanjeevd6872 Před rokem

    Font clamp size not working different devices pls tell the solution sir .....

  • @seancarlopiodo2685
    @seancarlopiodo2685 Před rokem

    Can I use clamp and media query at the same time?

  • @darkman237
    @darkman237 Před 5 měsíci

    stupid question: this will work for any font?

    • @oliseoseji8868
      @oliseoseji8868 Před 4 měsíci

      yes and not just font

    • @darkman237
      @darkman237 Před 4 měsíci +1

      @@oliseoseji8868I wasn't able to get it to work on firefox, latest version.

  • @scottonanski4173
    @scottonanski4173 Před 3 měsíci +3

    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.

  • @vikashpatel1204
    @vikashpatel1204 Před 9 měsíci

    Wasting too much of time in video instead ( Get inspired from @Fireship )