๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ

Development/TIL

๐ŸธFLEXBOX FROGGY๐Ÿธ

๐Ÿธ

์˜ˆ์ „์— CSS๊ณต๋ถ€ํ•  ๋•Œ์—๋„ ํ•œ๋ฒˆ ํ•ด๋ดค์ง€๋งŒ ์˜ค๋žœ๋งŒ์— ๋‹ค์‹œ ๊ณต๋ถ€ํ•˜๋Š”๊น€์— ํ•ด๋ดค๋‹ค.

์ด์™€๋Š” ๋ณ„๊ฐœ๋กœ ๊ทธ๋ฆผ์œผ๋กœ ํ•œ๋ฒˆ์— ์•Œ ์ˆ˜ ์žˆ๋Š” ์‚ฌ์ดํŠธ๋„ ์ฒจ๋ถ€ํ•ด๋†“๊ณ  ํ•„์š”ํ• ๋•Œ ๋‹ค์‹œ์ฐธ๊ณ ํ•ด์•ผ๊ฒ ๋‹ค.


  • STAGE 1
  justify-content: flex-end;
  • STAGE 2
  justify-content: center;
  • STAGE 3
  justify-content: space-around;
  • STAGE 4
  justify-content:  space-between;
  • STAGE 5
  align-items: flex-end;
  • STAGE 6
  justify-content: center;
     align-items: center;
  • STAGE 7
  justify-content: space-around;
     align-items: flex-end;
  • STAGE 8
  flex-direction: row-reverse;
  • STAGE 9
  flex-direction: column;
  • STAGE 10
  flex-direction: row-reverse;
     justify-content: flex-end;

Notice that when you set the direction to a reversed row or column, start and end are also reversed.

  • STAGE 11
  flex-direction: column;
    justify-content: flex-end;
  • STAGE 12
  flex-direction: column-reverse;
     justify-content: space-between;
  • STAGE 13
  flex-direction: row-reverse;
     justify-content: center;
     align-items: flex-end;
  • STAGE 14
  order: 1;
  • STAGE 15
  order: -3;
  • STAGE 16
  align-self: flex-end;
  • STAGE 17
  order: 2;
     align-self: flex-end;
  • STAGE 18
  flex-wrap: wrap
  • STAGE 19
  flex-direction: column;
     flex-wrap: wrap;
  • STAGE 20
  flex-flow: column wrap;
  • STAGE 21
  align-content: flex-start;
  • STAGE 22
  align-content: flex-end;
  • STAGE 23
  flex-direction: column-reverse;
     align-content: center;
  • STAGE 24
  flex-flow:column-reverse wrap-reverse;
     justify-content:center;
     align-content:space-between;