(header, footer ์์ ํ์ฌ ๊น์ ์ปค๋ฐํ๋๋ฐ ์๊พธ ์คํฌ๋กค์ด ์๊น)
body ๋ฅผ ์๋์ฐ ์ต๋ ํฌ๊ธฐ์ธ 100vh, 100vw ์ด๊ฑฐ๋ก ์ค์ ํด์ ๊ทธ๋ฐ๊ฐ..?
์ด์ฐจํผ ์/์๋์ ๊ณ ์ ๋์ด์๊ธฐ๋๋ฌธ์.
-> ์คํฌ๋กค์ด ์๊ฒผ๋ ์ด์ ๋ ํค๋๊ฐ position: fixed; ๊ฐ ์๋๋ผ display: fixed ๋ก ์ ์ฉ์ด ๋์ด์์๋ค.. ๊น์์ pull ํด์ค๋ฉด์ ๋ค๋ฅธ๋ถ์ด ์์ ํ์ ๋ฏํ๋ค! (display flex ์คํ ์์)
-> header : top 0, footer : bottom : 0 + position : fixed ์ ์ฉํ๊ธฐ. (ํค๋๋ฅผ ์ธ๊ณ ์๋ ๋ด์ฉ์ css ์ฃผ์ง๋ง๊ณ header ์์ฒด์ css ๋ก ์์น ์ฃผ๊ธฐ)
-> ํ์ด์ง๋ง๊ณ section ๋ด์์ header ์ footer ๊ฐ ํ์ํ ๊ฒฝ์ฐ์๋ absolute ์ ์ฉํด๋ ๊ด์ฐฎ๋ค. ์ด์ฐจํผ ๋ฐ๊นฅ ๊ตฌ์ญ์ ์นจ๋ฒํ์ง ์๊ธฐ ๋๋ฌธ!!
-> ๊ฐ์ธ์ ๋ณด ์์ธํ์ด์ง์๋ ์คํฌ๋กค์ด ํ์ํ์ง์์์ header, footer ์ฌ์ด์ฆ๋ฅผ ๊ณ ์ ์ํจ ํ div ๋ฅผ ์ค์์ ๋ง๊ฒ ์กฐ์ ํ๋๋ฐ, ๋ฉ์ธํ์ด์ง์ ์์ฑํ์ด์ง์๋ ์คํฌ๋กค์ด ํ์ํ์ฌ CSS ๋ถ๋ฆฌ์์ ์ ํ์๋ค.
- user agent styleshee
๋ด๊ฐ ์๋ฌด๋ฐ ๊ฐ์ ์ง์ ํด์ฃผ์ง ์์์๋, user agent stylesheet๊ฐ ์ ์ฉ๋ ์ ์๋ค.
ํ๋ก์ ํธ๋ฅผ ์์ํ๋ฉด, ์ด๊ธฐ์ ๋จผ์ css๋ฅผ ์ด๊ธฐํํ๊ณ ์์ํ๋ ๊ฒ์ด ์ข๋ค. ์ด๋ ๊ฒ ์ด๊ธฐํ๋ฅผ ํด์ฃผ๋ ์ด์ ๋ ๋ธ๋ผ์ฐ์ ๋ง๋ค ๊ธฐ๋ณธ์ผ๋ก ์ ๊ณตํ๋ ์คํ์ผ์ด ์๊ธฐ๋๋ฌธ์ด๋ค.
- user agent stylesheet์ด๋?
(= ์ฌ์ฉ์ ์์ด์ ํธ ์คํ์ผ์ํธ)
์ฌ์ฉ์ ์์ด์ ํธ / ๋ธ๋ผ์ฐ์ ์์ ๊ธฐ๋ณธ์คํ์ผ์ ์ ๊ณตํ๋ ๊ธฐ๋ณธ ์คํ์ผ์ํธ.
๋ชจ๋ ๋ฌธ์์๋ ์ด๋ฌํ user agent stylesheet๊ฐ ์๋ค.
-> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/reset-css@4.0.1/reset.min.css"/>
-> head ํ๊ทธ ์์ ์์ ์ฝ๋ ์์ฑ.
padding-bottom ๊ฐ์ ์ง์ ํ์ฌ ํ ์คํธ์ ๋ฐ์ค ์ฌ์ด์ ๊ฐ๊ฒฉ์ ์ง์ ํ ์ ์๋ค.
<border-bottom: 1px solid red;>
border-bottom ์์ฑ์ ์กฐ์ ํ์ฌ ๋ฐ์ค์ ๋ชจ์๊ณผ ๊ตต๊ธฐ, ๋ชจ์, ์๊น์ ์กฐ์ !
.icon_edit:hover {
transition: all 1.5s;
transform: rotate(360deg);
}