1μ΄λ‘ λμ΄λ 컨ν μΈ λ€μ
μ§μμμλ§ μ€λ₯Έμͺ½μΌλ‘ κ°κ² μ¬λ°°μΉ
곡ν΅ν΄λμ€λ‘ λμν ν΄λμ€μ :nth-chiled(even)
.about_page .desc_wrap:nth-child(even) .desc_img {
float: right;
}
.about_page .desc_wrap:nth-child(even) .txt_wrap {
float: right;
}
λλ
곡ν΅ν΄λμ€λ‘ λμν ν΄λμ€μ :nth-chiled(2n)
.about_page .desc_wrap:nth-child(2n) .desc_img {
float: right;
}
.about_page .desc_wrap:nth-child(2n) .txt_wrap {
float: right;
}
nth-child λ νμ μμλ€μ μ νμ΄ κ°λ₯ν κ°μμ νμμ΄λ€.
μ§μ even / 2n
νμ odd / 1n
'CSSπ§ > css μ νμ&κ°μν΄λμ€,곡ν΅ν΄λμ€' μΉ΄ν κ³ λ¦¬μ λ€λ₯Έ κΈ
css :not κ°μν΄λμ€ λΆμ μ νμ (0) | 2022.10.10 |
---|---|
css μ νμ μ 리 (0) | 2022.10.09 |
CSS 곡ν΅ν΄λμ€ [class^=] & background μμ΄μ½ κ³΅ν΅ λ³κ²½ (0) | 2022.10.02 |
CSS :nth-child(n) κ°μμ νμ nav μ€μ (0) | 2022.09.18 |
css before, after κ°μμ νμ μ 리 (0) | 2022.09.04 |
λκΈ