How to Vertical Align with CSS Flexbox - Beginner Tutorial

Pubblicato il: 02 novembre 2021
sul canale di: Front End Beginners
2,530
29

In this tutorial, we look at how to vertical align with CSS Flexbox.

When working with a "flex-direction" of "row", you can vertically align all items using the "align-items" property (which works along the cross axis).

To vertically align individual flex items when working in the row direction, use the "align-self" property.

When working with a "flex-direction" of "column", you can vertically align all items using the "justify-content" property (which works along the main axis).

To vertically align individual flex items in the column direction, use "auto margins".

I hope you found this video helpful. If you have any questions, please leave them in the comments below and I'll do my best to answer as soon as possible.

TIMESTAMPS:
00:00 Introduction
00:25 "flex-direction: row" and "align-items"
03:02 "flex-direction: row" and "align-self"
04:26 "flex-direction: column" and "justify-content"
05:39 "flex-direction: column" and auto margins
07:23 Summary

WATCH NEXT:
• CSS Flexbox "justify-content" vs. "align-items" -    • CSS Flexbox "justify-content" vs. "al...  
• CSS Flexbox "justify-content: space-between" Explained -    • CSS Flexbox "justify-content: space-b...  
• CSS Flex Direction (flex-direction) Explained -    • CSS Flex Direction (flex-direction) E...  


In questa pagina del sito puoi guardare il video online How to Vertical Align with CSS Flexbox - Beginner Tutorial della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Front End Beginners 02 novembre 2021, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 2,530 volte e gli è piaciuto 29 spettatori. Buona visione!