columnโwidth
columnโwidth๋ก ๋ ์ด์์์ ์ฝ๊ฒ ๊ตฌ์ฑ ๋ทฐํฌํธ์ ๋ฐ๋ผ ๋ณํจ.container { background: yellow; border: 1px solid silver; padding: 50px; column-width: 200px; }
h1 { background: teal; column-span: all; }
column-count๋ ๋จ์ ๊ฐฏ์๋ฅผ ๊ณ ์
padding๋์ line-height๋ฅผ ์ฌ์ฉํด์ ๊ธ์๊ฐ ๊ฐ์ด๋ฐ ๋ฐฐ์น๋๋ ๊ฒ์ฒ๋ผ ๊พธ๋ฐ ์ ์์
๋์น ๋ถ๋ถ
display: block
์ ์ฌ์ฉํ์ฌ ๋ฆฌ์คํธ ์ด๋ ๊ณณ์ ๋ง์ฐ์ค๋ฅผ ์ฌ๋ ค๋ ๋งํฌ๊ฐ ์ ํ๋ ์ ์๊ฒ ์์
.site__item a {
color: #000;
text-decoration: none;
display: block;
font-size: 0.875rem;
}