HTML & CSS クイズ: CSS Grid

This CSS quiz checks how CSS Grid sizes and places things. You will compute track sizes from fr units and gaps, count lines for grid-column, compare auto-fill with auto-fit, and work with named areas.

ふつう 10問 約6分 合格ライン 80%

モードを選ぶ

ゲストとしてプレイ中です。ログインすると XP と連続記録が保存されます。

例題

第1問 / 全10問

The grid is 600px wide. How wide are the two columns?

.grid {
  display: grid;
  width: 600px;
  grid-template-columns: 1fr 2fr;
}
答えを見る

B. 200px and 400px fr shares the free space in proportion: 3 fractions in total, so 1fr = 200px and 2fr = 400px.

このクイズの内容

  • fr units, fixed tracks and gap
  • Placing items with line numbers, span and -1
  • repeat(), minmax(), auto-fill and auto-fit
  • Implicit rows and grid-template-areas
  • Why 1fr can overflow and minmax(0, 1fr) fixes it

よくある質問

アカウントは必要ですか?

いいえ、誰でも遊べます。ログインすると XP、連続記録、バッジ、履歴が保存されます。

何度でも挑戦できますか?

はい。ベストスコアが記録され、問題と選択肢は毎回シャッフルされます。