Flexbox Defense

daymoon_ยท2022๋…„ 2์›” 1์ผ
0

CSS

๋ชฉ๋ก ๋ณด๊ธฐ
1/18
post-thumbnail

Flexbox Defense?

๐Ÿค” ๋ฌธ์ œ ๋งํฌ : Flexbox Defense

CSS ์ฝ”๋“œ๋กœ ๋Œ€ํฌ๋ฅผ ๋ฐฐ์น˜ํ•ด์„œ ๋ชฐ๋ ค๋“œ๋Š” ์ ๋“ค์„ ๋ฌผ๋ฆฌ์น˜๋Š” ๋””ํŽœ์Šค๊ฒŒ์ž„


๐Ÿ“‘ ๋‹ต์•ˆ

โœ… Wave 1

.tower-group-1 {
display: flex;
justify-conternt: center;
}


โœ… Wave 2

.tower-group-1 {
display: flex;
justify-content:flex-end;
}
.tower-group-2 {
display: flex;
justify-content:center;
}
.tower-group-3 {
display: flex;
justify-content:flex-end;
}


โœ… Wave 3

.tower-group-1 {
display: flex;
justify-content: center;
}
.tower-group-2 {
display: flex;
justify-content: space-between;
}


โœ… Wave 4

.tower-group-1 {
display: flex;
align-items: flex-end;
}
.tower-group-2 {
display: flex;
align-items: flex-end;
}


โœ… Wave 5

.tower-group-1 {
display: flex;
justify-content: space-around;
align-items: flex-end;
}
.tower-group-2 {
display: flex;
justify-content: center;
}
.tower-group-3 {
display: flex;
justify-content: center;
align-items: center;
}


โœ… Wave 6

.tower-group-1 {
display: flex;
justify-content: space-between;
align-items: center;


โœ… Wave 7

.tower-group-1 {
display: flex;
flex-direction: column;
}
.tower-group-2 {
display: flex;
flex-direction: column;
}


โœ… Wave 8

.tower-group-1 {
display: flex;
flex-direction: column;
}
.tower-group-2 {
display: flex;
flex-direction: column;
align-items: center;
}


โœ… Wave 9

.tower-group-1 {
display: flex;
justify-content: space-around;
flex-direction: row-reverse;
}
.tower-group-2 {
display: flex;
justify-content: space-around;
flex-direction: row-reverse;
align-items: center;
}


โœ… Wave 10

๐Ÿ“Œ ์ฐธ๊ณ ์ž๋ฃŒ
codingfactory ์•„์ดํ…œ์˜ ์ˆœ์„œ ์ •ํ•˜๋Š” ์†์„ฑ

  • ์ถœ๋ ฅ ์ˆœ์„œ๋งŒ ๋ณ€๊ฒฝํ•˜๊ณ  ์‹ถ์€ ๊ฒฝ์šฐ order๋ฅผ ์‚ฌ์šฉํ•œ๋‹ค.
  • ๊ธฐ๋ณธ๊ฐ’์€ 0
  • ์ž‘์€ ๊ฐ’๋ถ€ํ„ฐ ์š”์†Œ๋ฅผ ์ถœ๋ ฅ
  • ๊ฐ’์ด ๊ฐ™๋‹ค๋ฉด ์ž…๋ ฅํ•œ ์ˆœ์„œ๋Œ€๋กœ ์š”์†Œ๋ฅผ ์ถœ๋ ฅ
.tower-group-1 {
display: flex;
justify-content: space-around;
}
.tower-1-1 {
}
.tower-1-2 {
order: 1;
}
.tower-1-3 {
}
.tower-group-2 {
display: flex;
justify-content: space-around;
}
.tower-2-1 {
}
.tower-2-2 {
order: -1;
}
.tower-2-3 {
}


โœ… Wave 11

.tower-group-1 {
display: flex;
justify-content: space-between;
}
.tower-1-1 {
align-self: flex-end;
}
.tower-1-2 {
}
.tower-1-3 {
align-self: flex-end;
}
.tower-1-4 {
}


โœ… Wave 12

.tower-group-1 {
display: flex;
justify-content: space-between;
}
.tower-1-1 {
}
.tower-1-2 {
align-self: center;
}
.tower-1-3 {
order: 1;
align-self: center;
}
.tower-1-4 {
order: 2;
align-self: flex-end;
}
.tower-1-5 {
align-self: center;
}


๐Ÿ—“๏ธ ์ˆ˜์ • ๋ฐ ์ถ”๊ฐ€

โœ… 2022.02.02

  • flex ์†์„ฑ ์ถ”๊ฐ€

โœ… 2022.02.26

  • ์ธ๋„ค์ผ ๋ณ€๊ฒฝ

โœ… 2022.05.18

  • CSS: Flex ๋ถ„ํ•  ๋ฐ ์žฌ์ •๋ฆฌ
profile
๋ฏธ์ง€์˜ ๊ณต๊ฐ„๐ŸŒ™

0๊ฐœ์˜ ๋Œ“๊ธ€