사이트를 만들기 전에 레이아웃을 익히는 것은 가장 기본입니다. 웹 페이지의 레이아웃은 웹 사이트의 외관을 결정짓는 매우 중요한 요소입니다.
앞으로 나오는 레이아웃 예제를 하나하나씩 따라하시면 결과물이 완성되는 것을 확인할 수 있고, 사이트를 어떻게 만드는지 감을 잡을 수 있는 첫 단계입니다.
기초부터 튼튼히!! 여러분의 열공을 응원합니다!!!
Code Youtube
사용 프로그램
∗ brackets - CLICK
∗ sublime - CLICK
∗ visualstudio - CLICK
- 에디터는 본인이 편한것으로 사용하시면 되고, 저는 이번 강의에서 브라켓을 사용하였습니다. -
Code example
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<title>layout02</title>
<style>
body {background: #b3e5fc;}
#wrap {width: 1000px; height: 900px; margin: 0 auto; font-size: 40px; color: #fff; text-align: center; text-transform: uppercase;}
#header {width: 1000px; height: 100px; line-height: 100px; background-color: #0277bd;}
#nav {width: 1000px; height: 100px; line-height: 100px; background-color: #0288d1;}
#side_left {float: left; width: 300px; height: 600px; line-height: 600px; background-color: #039be5;}
#contents {float: left; width: 400px; height: 600px; line-height: 600px; background-color: #03a9f4;}
#side_right {float: left; width: 300px; height: 600px; line-height: 600px; background-color: #29b6f6;}
#footer {clear: both; width: 1000px; height: 100px; line-height: 100px; background-color: #0288d1;}
</style>
</head>
<body>
<div id="wrap">
<div id="header">header</div>
<div id="nav">nav</div>
<div id="side_left">side_left</div>
<div id="contents">contents</div>
<div id="side_right">side_right</div>
<div id="footer">footer</div>
</div>
</body>
</html>