[flex-box] order
π order
νλ μ€ μμ΄ν
μ λ°°μΉ μμλ₯Ό κ²°μ ν©λλ€.
μ§μ ν μ«μ(μ μ)μ λ§μΆ° μ€λ¦μ°¨μμΌλ‘ λ°°μΉν©λλ€.
μ½λμ μν₯μ λΌμΉλ κ²μ΄ μλ, 보μ¬μ§λ μμμλ§ μν₯μ μ€λλ€.
li:nth-child(1) {
order: 5;
}
li:nth-child(2) {
order: -4;
}
li:nth-child(3) {
order: 3;
}
li:nth-child(4) {
order: -2;
}
li:nth-child(5) {
order: 1;
}
μΆμ²
- μ λ Έμ½λ©
π¬ μ΅μ λκΈ