๐ค ๋ฌธ์ ๋งํฌ : 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
โ 2022.02.26
โ 2022.05.18