CSS ์์ฑ 15. columns
โ๏ธ ํด๋น ๊ธ์ ํจ์คํธ์บ ํผ์ค - ํ๋ก ํธ์๋ ๊ฐ๋ฐ ๊ฐ์์์ HTML & CSS, SASS(SCSS) Part์ ๋ฐ์์ ๊ฐ์ฌ๋์ ๊ฐ์์๋ฃ๋ฅผ ์ ๋ฆฌํ ๊ฒ์ ๋๋ค.
์ผ๋ฐ ๋ธ๋ก ๋ ์ด์์์ ํ์ฅํ์ฌ ์ฌ๋ฌ ํ ์คํธ ๋ค๋จ์ผ๋ก ์ฝ๊ฒ ์ ๋ฆฌํ๋ฉฐ, ๊ฐ๋ ์ฑ ํ๋ณด

columns
columns#
๋ค๋จ์ ์ ์ - ๋จ์ถ ์์ฑ
์์ฑ ๊ฐ#
| ๊ฐ | ์๋ฏธ | ๊ธฐ๋ณธ๊ฐ |
|---|---|---|
| auto | ๋ธ๋ผ์ฐ์ ๊ฐ ๋จ์ ๋๋น์ ๊ฐ์๋ฅผ ์ค์ | ['auto'] |
| column-width | ๋จ์ ์ต์ ๋๋น๋ฅผ ์ค์ | ['auto'] |
| column-count | ๋จ์ ๊ฐ์๋ฅผ ์ค์ | ['auto'] |
์ฌ์ฉ๋ฒ#
columns: ๋๋น ๊ฐ์;.text {columns: 100px 2;}column-width#
๋จ์ ์ต์ ๋๋น๋ฅผ ์ค์ - ๊ฐ๋ณ ์์ฑ
์์ฑ ๊ฐ#
| ๊ฐ | ์๋ฏธ | ๊ธฐ๋ณธ๊ฐ |
|---|---|---|
| auto | ๋ธ๋ผ์ฐ์ ๊ฐ ๋จ์ ๋๋น๋ฅผ ์ค์ | auto |
| ๋จ์ | px , em , cm ๋ฑ ๋จ์๋ก ์ง์ |
์ฌ์ฉ๋ฒ#
column-width: ๋๋น;โ๏ธ ๊ฐ ๋จ์ด ์ค์ด๋ค ์ ์๋ ์ต์ ๋๋น(์ต์ ๋๋น)๋ฅผ ์ค์ ํ๋ฉฐ, ์์์ ๋๋น๊ฐ ๊ฐ๋ณํ ํ๋์ ๋จ์ด ์ต์ ๋๋น๋ณด๋ค ์ค์ด๋ค ๊ฒฝ์ฐ ๋จ์ ๊ฐ์๊ฐ ์กฐ์ ๋๋ค.
column-count#
๋จ์ ๊ฐ์๋ฅผ ์ค์ - ๊ฐ๋ณ ์์ฑ
์์ฑ ๊ฐ#
| ๊ฐ | ์๋ฏธ | ๊ธฐ๋ณธ๊ฐ |
|---|---|---|
| auto | ๋ธ๋ผ์ฐ์ ๊ฐ ๋จ์ ๊ฐ์๋ฅผ ์ค์ | auto |
| ์ซ์ | ๋จ์ ๊ฐ์๋ฅผ ์ค์ |
์ฌ์ฉ๋ฒ#
column-count: ๊ฐ์;column-gap#
๋จ๊ณผ ๋จ ์ฌ์ด์ ๊ฐ๊ฒฉ ์ค์
์์ฑ ๊ฐ#
| ๊ฐ | ์๋ฏธ | ๊ธฐ๋ณธ๊ฐ |
|---|---|---|
| normal | ๋ธ๋ผ์ฐ์ ๊ฐ ๋จ๊ณผ ๋จ ์ฌ์ด์ ๊ฐ๊ฒฉ์ ์ค์ ( 1em ) | normal |
| ๋จ์ | px , em , cm ๋ฑ ๋จ์๋ก ์ง์ |
์ฌ์ฉ๋ฒ#
column-gap: ๊ฐ๊ฒฉ;column-rule#
๋จ๊ณผ ๋จ ์ฌ์ด์ (๊ตฌ๋ถ)์ ์ ์ง์ - ๋จ์ถ ์์ฑ
| ๊ฐ | ์๋ฏธ | ๊ธฐ๋ณธ๊ฐ |
|---|---|---|
| column-rule-width | ์ ์ ๋๊ป๋ฅผ ์ง์ | medium |
| column-rule-style | ์ ์ ์ข ๋ฅ๋ฅผ ์ง์ | none |
| column-rule-color | ์ ์ ์์์ ์ง์ | ์์์ ๊ธ์์๊ณผ ๋์ผ |
์ฌ์ฉ๋ฒ#
column-rule: ๋๊ป ์ข
๋ฅ ์์;Reference#
ํจ์คํธ์บ ํผ์ค - ํ๋ก ํธ์๋ ๊ฐ๋ฐ ๊ฐ์ - HTML & CSS, SASS(SCSS) Part by ParkYoungWoong