Skip to main content
DevTools24

مولد CSS Grid

بناء تخطيطات CSS Grid بصرياً. تحديد الأعمدة والصفوف والفجوات ورؤية معاينة مباشرة مع كود CSS المولد.

1
2
3
4
5
6
.container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto auto;
  column-gap: 10px;
  row-gap: 10px;
  justify-items: stretch;
  align-items: stretch;
}

CSS Grid Layout - التفاصيل التقنية

CSS Grid is a two-dimensional layout system for the web. Define rows and columns with grid-template-rows and grid-template-columns. Use fr units for flexible sizing, repeat() for patterns, and gap for spacing between cells.

بديل سطر الأوامر

/* Common grid patterns */\n.container {\n  display: grid;\n  grid-template-columns: repeat(3, 1fr);\n  gap: 20px;\n}

المرجع

عرض المواصفات الرسمية