<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Responsive on Commentary of Takao</title><link>https://takao.blog/en/tags/responsive/</link><description>Recent content in Responsive on Commentary of Takao</description><generator>Hugo -- gohugo.io</generator><language>en</language><copyright>Commentary of Takao</copyright><lastBuildDate>Sat, 13 Jun 2026 23:11:50 +0900</lastBuildDate><atom:link href="https://takao.blog/en/tags/responsive/index.xml" rel="self" type="application/rss+xml"/><item><title>Designing Modular layouts with CSS Container Queries</title><link>https://takao.blog/en/web/css-container-queries-vs-media-queries/</link><pubDate>Thu, 10 Jul 2025 00:00:00 +0900</pubDate><guid>https://takao.blog/en/web/css-container-queries-vs-media-queries/</guid><description>&lt;img src="https://takao.blog/img/thumnail.webp" alt="Featured image of post Designing Modular layouts with CSS Container Queries" /&gt;&lt;h2 id="introduction"&gt;Introduction
&lt;/h2&gt;&lt;p&gt;For years, &lt;strong&gt;Media Queries (&lt;code&gt;@media&lt;/code&gt;)&lt;/strong&gt; have been the foundation of responsive web design.&lt;/p&gt;
&lt;p&gt;Media queries trigger layout changes based on the viewport width of the browser window. However, in modern component-driven development (using React, Vue, or Web Components), styling components based on the viewport has notable limitations.&lt;/p&gt;
&lt;p&gt;For example, if you want to reuse a card component in both a wide main column and a narrow sidebar, media queries cannot detect the space available to the component, causing the layout to break.&lt;/p&gt;</description></item></channel></rss>