μ¬μ μ§μ: Flex
πΆπ» μΈλ,νλ μ€κ° λμΌ?
π©π»βπ»Block μμλ€μ λ°°μΉν λ νλ μ€λ₯Ό μ¬μ©νλ©΄ λ€μνκ² μμλ€μ λ°°μΉν μκ° μμ§
νλ μ€λ₯Ό μ¬μ©νλ©΄ λ€μν λλ°μ΄μ€μ νλ©΄ ν¬κΈ°μ μλμΌλ‘ λ°μνλ μΉ νμ΄μ§λ₯Ό ꡬμΆν μ μμ΄
<div class="d-flex flex-row">
<div class="p-2 border">Flex item 1</div>
<div class="p-2 border">Flex item 2</div>
<div class="p-2 border">Flex item 3</div>
</div>
<div class="d-flex flex-row-reverse">
<div class="p-2 border">Flex item 1</div>
<div class="p-2 border">Flex item 2</div>
<div class="p-2 border">Flex item 3</div>
</div>
<div class="d-flex flex-column mb-3">
<div class="p-2 border">Flex item 1</div>
<div class="p-2 border">Flex item 2</div>
<div class="p-2 border">Flex item 3</div>
</div>
<div class="d-flex flex-column-reverse">
<div class="p-2 border">Flex item 1</div>
<div class="p-2 border">Flex item 2</div>
<div class="p-2 border">Flex item 3</div>
</div>
<div class="d-flex justify-content-start border">Flex item 1</div>
<div class="d-flex justify-content-end border">Flex item 2</div>
<div class="d-flex justify-content-center border">Flex item 3</div>
<div class="d-flex justify-content-between border">Flex item 4</div>
<div class="d-flex justify-content-around border">Flex item 5</div>
<div class="d-flex justify-content-evenly border">Flex item 6</div>
https://getbootstrap.com/docs/5.3/utilities/flex/#enable-flex-behaviors