Responsive Typography with CSS Clamp

Поделиться
HTML-код
  • Опубликовано: 28 дек 2022
  • 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

Комментарии • 25

  • @chrisicotec7652
    @chrisicotec7652 27 дней назад

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

  • @markoseovac3185
    @markoseovac3185 Год назад +1

    Interesting new thing, thank you 🤙

  • @adityarajgor6763
    @adityarajgor6763 9 месяцев назад

    Best video so far

  • @thexpand
    @thexpand Год назад +9

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

  • @user-lc2cb8io6w
    @user-lc2cb8io6w 2 месяца назад +1

    thanks for this.

  • @victoradeniji4554
    @victoradeniji4554 4 месяца назад +1

    Awesome video. Thank you so much.

  • @dileepbatchala1590
    @dileepbatchala1590 10 месяцев назад +1

    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 7 месяцев назад +1

    it is a very good video one of my favorites

  • @OCEMTechZone
    @OCEMTechZone 3 месяца назад +1

    Great 🎉

  • @dileepbatchala1590
    @dileepbatchala1590 10 месяцев назад

    Brother what about the line height?

  • @rg-web-design
    @rg-web-design Месяц назад

    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.

  • @juanortegaa6916
    @juanortegaa6916 9 месяцев назад +2

    Did you take this from Kevin Powell ??

  • @sanjeevd6872
    @sanjeevd6872 Год назад

    Font clamp not working for samsung galaxy mobiles

  • @benburakk
    @benburakk Год назад

    which using vs cde theme?

  • @sanjeevd6872
    @sanjeevd6872 Год назад

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

  • @seancarlopiodo2685
    @seancarlopiodo2685 11 месяцев назад

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

  • @scottonanski4173
    @scottonanski4173 Месяц назад

    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.

  • @darkman237
    @darkman237 3 месяца назад

    stupid question: this will work for any font?

    • @oliseoseji8868
      @oliseoseji8868 2 месяца назад

      yes and not just font

    • @darkman237
      @darkman237 2 месяца назад +1

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

  • @vikashpatel1204
    @vikashpatel1204 7 месяцев назад

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