본문 바로가기

IT공부/HTML & CSS

03. 웹 표준 사이트 만들기(2019)

03. 웹 표준 사이트 만들기(2019)

블로그에서 많이 쓴다. ㅣ

"03. layout03.html" 파일을 만든다.

 

전체소스

 

<!DOCTYPE html>
<html lang="ko">
<head>
    <meta charset="UTF-8">
    <title>layout03</title>
    <style>
        body {background: #d1c4e9;}
        #wrap {width: 1000px; height: 900px; margin: 0 auto; font-size: 40px; color: #fff; text-align: center; text-transform: uppercase;}
        .side {float: left; width: 300px; height: 900px; ; line-height: 900px; background-color: #4527a0;}
        .header {float: left;width: 700px; height: 300px; line-height: 300px; background-color: #512da8;}
        .contents {float: left;width: 700px; height: 300px; line-height: 300px; background-color: #5e35b1;}
        .footer {float: left;width: 700px; height: 300px; line-height: 300px; background-color: #673ab7;}
    </style>
</head>
<body>
   <div id="wrap">
       <div class="side">side</div>
       <div class="header">header</div>
       <div class="contents">contents</div>
       <div class="footer">footer</div>
   </div>
</body>
</html>