Hey friends! I’ve got some fun CSS to share! KINDA SORTA CONTAINER QUERIES WITH CLAMP!

codepen.io/Snugug/pen/JjYPqmd

I’ll write a little blog post about this later, but basically “800px” in the pen is your min-width.

  • 4
  • 6
  1. @RWD @etportis It’s a little fuzzy around the edges, and only works for “querying” the width the current element, and only for values that can be boiled down to a value with a unit, but IT’S SOMETHING.

    • 0
    • 0
    1. @RWD @etportis This should also, in theory, be combine-able with Logical CSS Operations using -1px and 1px to toggle things on and off (although that’d need some more experimenting)

      css-tricks.com/logical-operations-with-css-variables

      • 0
      • 1