GifproGifpro

CSS Container Queries インタラクティブプレイグラウンド

VISTA DE CÓDIGO

P

Prompt

Create an interactive playground to explore CSS Container Queries (size queries only). Include a resizable parent container with three child cards. The children should have styles that change based on the parent's width: narrow, medium, and wide breakpoints (e.g., <300px, 300-500px, >500px). Show the current container width and breakpoint label. Use only container query syntax (no media queries). Keep the code self-contained and visually clean.

このインタラクティブデモでは、リサイズ可能な親コンテナを使用してCSS Container Queriesを体験できます。スライダーをドラッグしてコンテナの幅を変更すると、3つの子カードがリアルタイムで変化します。カードの背景色、角丸、フォントサイズが300px未満、300px〜500px、500px以上の3つのブレークポイントで変わります。すべてのレスポンシブ動作は@containerクエリを使用しており、メディアクエリは使っていません。現在のコンテナ幅とブレークポイントラベルが表示されます。

¿Te resultó útil este prompt?

Comentarios

Los comentarios aparecen después de la moderación

Inicioヘルプ