ควิซ 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 และ streak

ตัวอย่างคำถาม

ข้อ 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, streak, เหรียญตรา และประวัติ

ทำซ้ำได้ไหม?

ได้ ระบบเก็บคะแนนที่ดีที่สุดไว้ และสลับคำถามกับตัวเลือกใหม่ทุกครั้ง