Posts
Q&A
๋ผ๋์ค๋ฒํผ๊ณผ ์ฒดํฌ๋ฐ์ค๋ฅผ ์ปค์คํ ์ฒดํฌ๋ฐ์ค๋ก ์คํ์ผ๋ง ๊ด๋ จ ์ง๋ฌธ ๋๋ฆฝ๋๋ค.
๊ฐ์ฌํฉ๋๋ค.
- 1
- 2
- 920
Q&A
'๊ธฐ๋ณธํ ๋๋กญ๋ค์ด ๋ค๋น๊ฒ์ด์ '์ด zip ํ์ผ ์์ ์์ต๋๋ค.
์ฐพ์์ ํ์ธํ์ต๋๋ค.๊ฐ์ฌํฉ๋๋ค.
- 1
- 2
- 440
Q&A
์ธ๋ก ์ฌ๋ผ์ด๋์์ font-size: 0์ด ์ ์ฉ๋์ง ์์ต๋๋ค.
๊ฐ์ฌํฉ๋๋ค.
- 1
- 2
- 376
Q&A
.menu์ display: flex๋ฅผ ์ ์ฉํ์ ๋ sub-menu๊ฐ ํ๊บผ๋ฒ์ ๋ณด์ ๋๋ค
์์ค๋ฅผ ๋ถ๋ถ๋ง ์ฌ๋ ค์ ์ฃ์กํฉ๋๋ค. ๋ค๋น๊ฒ์ด์ -์๋จ-03-๊ฐ๋ณ(์์ฑ)์ ๋๋ค. HTML์ ๋ฐ๋ ๋ถ๋ถ์ด ์๊ณ CSS๋ ์์ ์ฌ๋ฆฐ ๋ถ๋ถ๋ง ๋ณ๊ฒฝํ์ต๋๋ค. header ๋ถ๋ถ์ float๋ฅผ ์ ์ฉํ๊ฑฐ๋ display:flex๋ฅผ ์ ์ฉํด๋ ๋์ผํ ๋ฌธ์ ๊ฐ ๋ํ๋ฉ๋๋ค. ๋ค๋น๊ฒ์ด์ -์๋จ-03-๊ฐ๋ณ(์์ฑ) ๋ก๊ณ MENU-1 SUBMENU-1 SUBMENU-2 SUBMENU-3 SUBMENU-4 MENU-2 SUBMENU-1 SUBMENU-2 SUBMENU-3 SUBMENU-4 MENU-3 SUBMENU-1 SUBMENU-2 SUBMENU-3 SUBMENU-4 MENU-4 SUBMENU-1 SUBMENU-2 SUBMENU-3 SUBMENU-4 ์ด๋ฏธ์ง ์ฌ๋ผ์ด๋ ๊ณต์ง์ฌํญ(C.1) ๊ฐค๋ฌ๋ฆฌ(C.2) ๋ฐ๋ก๊ฐ๊ธฐ(C.3) Copyright SNS ํจ๋ฐ๋ฆฌ ์ฌ์ดํธ @charset "utf-8"; body { margin: 0; font-size: 15px; color: #222; line-height: 1.6em; background-color: #fff; } a { text-decoration: none; color: #222; } .container {} /* Header */ .header-inner { background-color: #eee; } header { border: 1px solid #ccc; width: 1200px; margin: auto; height: 100px; /* flex */ display: flex; justify-content: space-between; /* flex */ } header div { height: 100px; border: 1px solid #ccc; } .header-logo { width: 200px; /* header์ display : flex ์ ์ฉ */ /* float: left; */ text-align: center; line-height: 100px; } .navi { width: 600px; /* header์ display : flex ์ ์ฉ */ /* float: right; */ } /* Content */ .content-inner { width: 1200px; margin: auto; } .slide { width: 1200px; height: 300px; text-align: center; line-height: 300px; } .slide div { border: 1px solid #ccc; height: 300px; } .items { overflow: hidden; } .items > div { border: 1px solid #ccc; height: 200px; float: left; box-sizing: border-box; } .news { width: 500px; text-align: center; line-height: 200px; } .banner { width: 350px; text-align: center; line-height: 200px; } .shortcut { width: 350px; text-align: center; line-height: 200px; } /* Footer */ .footer-inner { background-color: #eee; } footer { width: 1200px; margin: auto; overflow: hidden; } footer > div { border: 1px solid #ccc; height: 100px; float: left; box-sizing: border-box; } .footer-logo { width: 1000px; text-align: center; line-height: 100px; } .footer-content { width: 200px; text-align: center; line-height: 100px; } .footer-content div { border: 1px solid #ccc; height: 50px; text-align: center; line-height: 50px; } /* Navigation */ .menu { padding: 0; margin-top: 30px; list-style: none; display: flex; } .menu li { /* float: left; */ width: 25%; text-align: center; border: 1px solid #000; box-sizing: border-box; background-color: #fff; } .menu li > a { display: block; padding: 5px; transition: 0.5s; } .menu li:hover > a { background-color: #000; color: #fff; } .sub-menu { height: 135px; display: none; } .sub-menu a { display: block; padding: 5px; transition: 0.5s; } .sub-menu a:hover { background-color: #000; color: #fff; }
- 1
- 3
- 430