
๋ ์ด์์04 ์ด๋ฒ ๋ ์ด์์์ ์ ์ฒด ์์ญ์ด ๋ค์ด๊ฐ ๊ตฌ์กฐ์ ๋๋ค. ์ค์ ์ฌ์ดํธ์์ ์ด๋ฐ ๊ตฌ์กฐ๋ฅผ ๋ง์ด ์ฌ์ฉํ๋ฉฐ, ์ปจํ ์ด๋๋ฅผ ๋ง๋ค์ด์ ๊ฐ์ด๋ฐ ์์ญ์ ์ค์ ํฉ๋๋ค. ๋ฏธ๋์ด์ฟผ๋ฆฌ๋ฅผ ์ด์ฉํ ๋ฐ์ํ ํด๋์ค container๋ก ๊ฐ๋ตํ๊ฒ ์ฝ๋ฉํ ์ ์๋ค. * { margin: 0; padding: 0; } #header { height: 100px; background-color: #E0F2F1; } #nav { height: 300px; background-color: #80CBC4; } #section { height: 500px; background-color: #26A69A; } #footer { height: 100px; background-color: #00897B; } /* id/class #/. ํ๋ฒ๋ง ์ธ ์ ์..

๋ ์ด์์02 float, flex, grid๋ฅผ ํตํด ํํํ ๋ ์ด์์ float ์ํ๋ ๊ณณ์ float: left, right, none ๋ฑ ์ ์ค๋ค. float์ ์ค ๋ ๋ฒ๊ทธ ๋ฐฉ์ง๋ฅผ ์ํ ๋ฐฉ๋ฒ์ด 3๊ฐ์ง ์๋ค. 1. claer: both; 2. overflow: hidden; 3. .clearfix::before, .clearfix::after {content: '' " ; display: block; line-height: 0;} .clearfix::after {clear: both;} See the Pen ๋ ์ด2float by kimm99604 (@kimm99604) on CodePen. float - ๋ฐ์ํ ๋ฏธ๋์ด์ฟผ๋ฆฌ๋ฅผ ํตํด float ๋ฐ์ํ์ ๋ง๋ค ์ ์๋ค. @media(max-width:1300p..