<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>layout05</title> <style> * {margin: 0; padding: 0;} #wrap {width: 100%; color:#fff; font-size: 30px; 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> |
'웹 표준 사이트 만들기 > 레이아웃 구조 실습' 카테고리의 다른 글
웹 표준 사이트 만들기 7강 (0) | 2022.12.29 |
---|---|
웹 표준 사이트 만들기 6강 (0) | 2022.12.29 |
웹 표준 사이트 만들기 4강 (0) | 2022.12.28 |
웹 표준 사이트 만들기 3강 (0) | 2022.12.28 |
웹 표준 사이트 만들기 2강 (0) | 2022.12.28 |