1. μ°μ Container μ κ·Έ μμ items μ μ μ©ν μ μλ μμ± κ°λ€μ΄ λ€λ₯΄λ€λ κ²μ μΈμ§νμ.
2. μ€μ¬μΆκ³Ό λ°λμΆμΌλ‘ λλ μ§λ€. λ΄κ° μ€μ¬μΆμ μ΄λλ‘ λλ μ§μ λ°λΌ λ°λμΆμ΄ λ°λλ€.
container
display: flex;
flex-direction: row; (default)
flex-wrap: nowrap; (default)
justify-content: flex-start; center;
space-around; space-evenly; space-between;
align-items: center;
baseline; (textκ° λλν λ°°μΉ)
items
flex-grow: 0; (default)
flex-shrink: 0; (default)
flex-basis: 60%; (μμ)
align-self: center;
μ°Έκ³ μ¬μ΄νΈ π€
https://css-tricks.com/snippets/css/a-guide-to-flexbox/
MDN π½
https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Flexible_Box_Layout/Basic_Concepts_of_Flexbox
μΆμ² π
https://www.youtube.com/watch?v=7neASrWEFEM
λλ¦Όμ½λ©μ μ νλΈλ₯Ό λ³΄κ³ μ 리ν μλ£ μ
λλ€!
μ νλΈλ₯Ό 보μλ©΄ ν¨μ¬ λ μ μ΄ν΄λ κ²λλ€ γ
γ
γ