34 karma · joined Feb 12, 2024 (2y ago) · 16 submissions
comment 5mo ago · link · parent
comment 2y ago · link · parent
comment 2y ago · link · parent
css grid however is perfect for this and represents one of the most underutilised powerhouses in the css kit
comment 2y ago · link · parent
justify always refers to the main axis of a box model element, and align refers to the cross axis. by default, flex-direction is set to row, so justify often means horizontal and align often means vertical.
until it doesn't of course. when we switch tbe flex direction from row to column which is a very handy trick for easy responsive on small devices, the main axis is now vertical and the cross axis is now horizontal.