Starting In On Min, Max, And Clamp This Week

Authored on
Thu, 11/30/2023 - 21:29
Tags
Body

Having a blast messing around with the clamp(), min(), and max() functions this week. They've been out for a while now but these last few days felt like the perfect time to toy around with them.

Brainstorming how to use them in projects. Uses for min() are coming to mind right away. I've been slowly reading about how to use clamp() for responsive typography.

Stoked to start reducing a bunch of redundancy in our CSS stylesheets. Especially with centering content at different screen sizes.

A cool post about how it all works here:  min(), max(), and clamp(): three logical CSS functions to use today

Add new comment

Restricted HTML

  • Allowed HTML tags: <a href hreflang> <blockquote cite> <br> <cite> <code> <dd> <dl> <dt> <em> <h2> <h3> <h4> <h5> <h6> <li> <ol start type> <p> <strong> <ul type>
  • Lines and paragraphs break automatically.
  • Web page addresses and email addresses turn into links automatically.