CSS 28 ๐ป justify-content and align-items properties
a - justify-content property
justify-content specifies the alignment of extra space between the items.
It is used for the main axis
values โ positional alignment(center, start, end, flex-start, flex-end, left and right)
distributed alignment(space-between, space-around, space-evenly and stretch)
overflow alignment(sace center and unsafe center)
justify-content: space-between; โ the spacing between items is the same
justify-content: space-around; โ the spacing between items is the same. The space in the beginning and at the end is the half of the space between
justify-content: space-evenly; โ the spacing between the item and in the beginning and in the end is the same
justify-content: center; โ items are centered and packed to each other
b - align-items property
align-items specifies how items should be aligned along the cross axis
values โ basic keywords(normal, stretch)
positional alignment(center, start, flex-start, flex-end, self-start, self-end and anchor-center)
baseline alignment(baseline, first baseline, last baseline, safe center, unsafe center)
align-items: baseline; โ aligns to containers baseline
align-items: end; โ aligns items to the end of the container
align-items: start; โ aligns items to the start of the container
align-items: stretch; โ items enlarged to fill the container
Stop using slow, ad-bloated tool sites! ๐คฎ
๐ Search “KandZ Tools” on Google to use many professional utilities for free.
KandZ.me is the ultimate minimalist hub for:
โ
Finance (Mortgage, Interest, Inflation)
โ
Tech (Base64, JSON, Dev Suite, IP)
โ
Health (BMI, BMR, TDEE)
โ
Productivity (Timer, Workspace, QR)
โก๏ธ Fast & Private
๐ No data leaves your device
๐ 100% Free
๐ Use it now: https://tools.kandz.me
๐ Bookmark itโyouโll need it later!