[Layout] Layout - 7
웹/Layout2019. 1. 5. 18:15
Layout
Layout07
결과물
코드
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>Layout07</title> <style> body { margin: 0; padding: 0; } #wrap { width: 100%; height: 1300px; color: #fff; text-align: center; font-size: 40px; } #header { width: 100%; height: 200px; } .header-top { height: 100px; line-height: 100px; background: #b2ebf2; } .header-nav { height: 100px; line-height: 100px; background: #80deea; } #banner { width: 100%; height: 250px; line-height: 250px; background: #4dd0e1; } #content1 { width: 100%; height: 50px; line-height: 50px; background: #26c6da; } #content2 { width: 100%; height: 300px; line-height: 300px; background: #00bcd4; } #content3 { width: 100%; height: 300px; line-height: 300px; background: #00acc1; } .footer-nav { width: 100%; height: 50px; line-height: 50px; background: #0097a7; } .footer-info { width: 100%; height: 150px; line-height: 150px; background: #00838f; } .container { width: 70%; margin: 0 auto; height: inherit; background: rgba(0, 0, 0, 0.1); } </style> </head> <body> <div id="wrap"> <div id="header"> <div class="header-top"> <div class="container"> HEATER-TOP </div> </div> <div class="header-nav"> <div class="container"> HEATER-NAV </div> </div> </div> <div id="banner"> <div class="container"> BANNER </div> </div> <div id="content"> <div id="content1"> <div class="container"> CONTENT1 </div> </div> <div id="content2"> <div class="container"> CONTENT2 </div> </div> <div id="content3"> <div class="container"> CONTENT3 </div> </div> </div> <div id="footer"> <div class="footer-nav"> <div class="container"> FOOTER-NAV </div> </div> <div class="footer-info"> <div class="container"> FOOTER-INFO </div> </div> </div> </div> </body> </html>
'웹 > Layout' 카테고리의 다른 글
[Layout] Layout - 6 (0) | 2019.01.05 |
---|---|
[Layout] Layout - 5 (0) | 2019.01.05 |
[Layout] Layout - 4 (0) | 2019.01.05 |
[Layout] Layout - 3 (0) | 2019.01.05 |
[Layout] Layout - 2 (0) | 2019.01.05 |
댓글()