티스토리 뷰

코드

<!DOCTYPE html>
<html lang="ko">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>laylout05</title>
    <style>
        * {margin: 0; padding: 0;}
        #wrap {font-size: 40px; color: #fff; text-align: center; text-transform: uppercase;}
        #header-wrap { width: 100%;  background-color: #8d6e63;}
        #banner-wrap { width: 100%; background-color: #a1887f;}
        #content-wrap { width: 100%;  background-color: #bcaaa4;}
        #footer-wrap { width: 100%; background-color: #d7ccc8;}

        .header-container { width: 1000px; margin: 0 auto; height: 100px; line-height: 100px; background-color: #3e2723;}
        .banner-container { width: 1000px; margin: 0 auto; height: 300px; line-height: 300px; background-color: #4e342e;}
        .content-container { width: 1000px; margin: 0 auto; height: 500px; line-height: 500px; background-color: #5d4037;}
        .footer-container { width: 1000px; margin: 0 auto; height: 100px; line-height: 100px; background-color: #6d4c41;}
    </style>
</head>
<body>
    <div id="wrap">
        <div id="header-wrap">
            <div class="header-container">header</div>
        </div>
        <div id="banner-wrap">
            <div class="banner-container">banner</div>
        </div>
        <div id="content-wrap">
            <div class="content-container">content</div>
        </div>
        <div id="footer-wrap">
            <div class="footer-container">footer</div>
        </div>
    </div>
</body>
</html>
댓글
© 2018 webstoryboy