Skip to content

Justify Items

Jajarkan item grid pada paksi sebaris

Sintaks

layout="justify-items:[value]"

Nilai

NilaiCSS OutputHuraian
startjustify-items: startJajar permulaan
endjustify-items: endJajar hujung
centerjustify-items: centerJajar tengah
stretchjustify-items: stretchRegangkan item

Contoh

html
<div layout="grid justify-items:center">Centered items</div>

Pratonton

Jajar Item Tengah

layout="justify-items:center" - Tengahkan semua item grid secara mendatar dalam sel mereka

123
Lihat Kod
html
<div layout="grid grid-cols:3 justify-items:center" space="g:small p:medium" visual="bg:neutral-100 dark:bg:neutral-900 rounded:medium">
  <span space="p:small" visual="bg:primary text:white rounded:small">1</span>
  <span space="p:small" visual="bg:primary text:white rounded:small">2</span>
  <span space="p:small" visual="bg:primary text:white rounded:small">3</span>
</div>