[Layout] Layout - 5
웹/Layout2019. 1. 5. 18:13
Layout
Layout05
결과물
코드
<!DOCTYPE html> <html lang="ko-KR"> <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>Layout05</title> <style> body { margin: 0; padding: 0; } #wrap { width: 100%; height: 1000px; color: #fff; font-size: 40px; text-align: center; } #header { width: 100%; height: 100px; line-height: 100px; background: #8d6e63; } .header-container { width: 70%; height: 100px; margin: 0 auto; background: #3e2723; } #banner { width: 100%; height: 300px; line-height: 300px; background: #a1887f; } .banner-container { width: 70%; height: 300px; margin: 0 auto; background: #4e342e; } #content { width: 100%; height: 500px; line-height: 500px; background: #bcaaa4; } .content-container { width: 70%; height: 500px; margin: 0 auto; background: #5d4037; } #footer { width: 100%; height: 100px; line-height: 100px; background: #d7ccc8; } .footer-container { width: 70%; height: 100px; margin: 0 auto; background: #6d4c41; } </style> </head> <body> <div id="wrap"> <div id="header"> <div class="header-container"> HEADER </div> </div> <div id="banner"> <div class="banner-container"> BANNER </div> </div> <div id="content"> <div class="content-container"> CONTENT </div> </div> <div id="footer"> <div class="footer-container"> FOOTER </div> </div> </div> </body> </html>
'웹 > Layout' 카테고리의 다른 글
[Layout] Layout - 7 (0) | 2019.01.05 |
---|---|
[Layout] Layout - 6 (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 |
댓글()