[Bootstrap] Flex

λ°•μ‹œμ€Β·2023λ…„ 6μ›” 27일
0

Bootstrap

λͺ©λ‘ 보기
6/9
post-thumbnail

β–Ά Flexλž€?

사전지식: Flex

πŸ‘ΆπŸ» μ–Έλ‹ˆ,ν”Œλ ‰μŠ€κ°€ 뭐야?
πŸ‘©πŸ»β€πŸ’»Block μš”μ†Œλ“€μ„ λ°°μΉ˜ν•  λ•Œ ν”Œλ ‰μŠ€λ₯Ό μ‚¬μš©ν•˜λ©΄ λ‹€μ–‘ν•˜κ²Œ μš”μ†Œλ“€μ„ λ°°μΉ˜ν•  μˆ˜κ°€ μžˆμ§€
ν”Œλ ‰μŠ€λ₯Ό μ‚¬μš©ν•˜λ©΄ λ‹€μ–‘ν•œ λ””λ°”μ΄μŠ€μ™€ ν™”λ©΄ 크기에 μžλ™μœΌλ‘œ λ°˜μ‘ν•˜λŠ” μ›Ή νŽ˜μ΄μ§€λ₯Ό ꡬ좕할 수 μžˆμ–΄


β–· flex λ°©ν–₯

    <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>


β–· justify-content

    <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

profile
λΈ”λ‘œκ·Έ μ΄μ „ν–ˆμŠ΅λ‹ˆλ‹€!

0개의 λŒ“κΈ€