44 HTML & CSS flex

כללי / תכנות כללי 469 צפיות 02/10/2022
פתח ב-YouTube

דרג סרטון זה

התחבר כדי לדרג

תיאור

Aligning items in a flex container One of the reasons that flexbox quickly caught the interest of web developers is that it brought proper alignment capabilities to the web for the first time. It enabled proper vertical alignment, so we can at last easily center a box. In this guide, we will take a thorough look at how the alignment and justification properties work in Flexbox. To center our box we use the align-items property to align our item on the cross axis, which in this case is the block axis running vertically. We use justify-content to align the item on the main axis, which in this case is the inline axis running horizontally.

#Web School 26