<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/this-blew-my-mind-sqrdu2jdr" -->

---
title: This blew my mind | daily.dev
description: CSS container queries can use the `ch` unit (character width) inside `calc()` expressions, enabling layouts that are aware of both container size and font...
canonical: https://daily.dev/posts/this-blew-my-mind-sqrdu2jdr
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: This blew my mind | daily.dev
og:description: CSS container queries can use the `ch` unit (character width) inside `calc()` expressions, enabling layouts that are aware of both container size and font...
og:url: https://daily.dev/posts/this-blew-my-mind-sqrdu2jdr
og:image: https://api.daily.dev/og/posts/SQRdU2JDr.png
og:image:alt: This blew my mind
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# This blew my mind

**[Kevin Powell](https://daily.dev/sources/kevinpowell)** · 2 min read · 0 upvotes · 0 comments

## Summary

CSS container queries can use the `ch` unit (character width) inside `calc()` expressions, enabling layouts that are aware of both container size and font size. Unlike media queries where `ch` resolves to a fixed browser default, in container queries `ch` is derived from the container's font size. This means setting a breakpoint like `30ch` per column ensures columns never get too narrow for readable text, and if the font size changes (e.g., via fluid typography with `clamp()`), the layout breakpoints scale proportionally — creating truly font-aware responsive layouts.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.youtube.com/watch?v=TvuhZMpFHLY>

## Similar posts on daily.dev

- [CSS Container Queries](https://daily.dev/posts/css-container-queries-iq9qajosu) · Flavio Copes · 24 upvotes · 0 comments
- [Stop Treating CSS Container Queries Like Traditional Media Queries — Smashing Magazine](https://daily.dev/posts/stop-treating-css-container-queries-like-traditional-media-queries-smashing-magazine-opborjqov) · Smashing Magazine · 8 upvotes · 0 comments
- [Death to px, long live ch\!](https://daily.dev/posts/death-to-px-long-live-ch--hw0sq1nxi) · Terence Eden · 6 upvotes · 6 comments

---

Tags: [#css](https://daily.dev/tags/css), [#ui-design](https://daily.dev/tags/ui-design)

[View this post on daily.dev](https://daily.dev/posts/this-blew-my-mind-sqrdu2jdr)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"This blew my mind","url":"https://daily.dev/posts/this-blew-my-mind-sqrdu2jdr","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/this-blew-my-mind-sqrdu2jdr"},"datePublished":"2026-03-17T13:04:39.707Z","dateModified":"2026-03-17T13:04:56.214Z","description":"CSS container queries can use the `ch` unit (character width) inside `calc()` expressions, enabling layouts that are aware of both container size and font...","image":"https://i.ytimg.com/vi/TvuhZMpFHLY/sddefault.jpg","thumbnailUrl":"https://i.ytimg.com/vi/TvuhZMpFHLY/sddefault.jpg","isAccessibleForFree":true,"articleSection":"Kevin Powell","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Kevin Powell","logo":"https://media.daily.dev/image/upload/s--XK5Rf0kM--/f_auto/v1717745137/logos/kevinpowell","url":"https://daily.dev/sources/kevinpowell"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/this-blew-my-mind-sqrdu2jdr","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"css,ui-design","timeRequired":"PT2M","video":{"@type":"VideoObject","name":"This blew my mind","description":"CSS container queries can use the `ch` unit (character width) inside `calc()` expressions, enabling layouts that are aware of both container size and font...","thumbnailUrl":"https://i.ytimg.com/vi/TvuhZMpFHLY/sddefault.jpg","uploadDate":"2026-03-17T13:04:39.707Z","duration":"PT2M","url":"https://api.daily.dev/r/SQRdU2JDr","embedUrl":"https://www.youtube.com/embed/TvuhZMpFHLY"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Kevin Powell","item":"https://daily.dev/sources/kevinpowell"},{"@type":"ListItem","position":3,"name":"This blew my mind"}]}
```

