디자인
소개
- webstandard
- 01_layout
- 02_layout
- 03_layout
- 04_layout
- layout04_01.html
- layout04_02.html
- layout04_03.html
- layout04_04.html
코드
<!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>레이아웃 유형04</title>
<style>
* {
margin: 0;
padding: 0;
}
#wrap {
width: 100%;
}
#header {
width: 100%;
height: 100px;
background-color: #E0F2F1;
}
#nav {
width: 100%;
height: 300px;
background-color: #80CBC4;
}
#section {
width: 100%;
height: 580px;
background-color: #26A69A;
}
#footer {
width: 100%;
height: 100px;
background-color: #00897B;
}
</style>
</head>
<body>
<div id="wrap">
<header id="header"></header>
<nav id="nav"></nav>
<section id="section"></section>
<footer id="footer"></footer>
</div>
</body>
</html>
<!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>레이아웃 유형4</title>
<style>
* {
margin: 0;
padding: 0;
}
#wrap {
width: 100%;
}
#header {
width: 100%;
height: 100px;
background-color: #E0F2F1;
}
#nav {
width: 100%;
height: 300px;
background-color: #80CBC4;
}
#section {
width: 100%;
height: 580px;
background-color: #26A69A;
}
#footer {
width: 100%;
height: 100px;
background-color: #00897B;
}
.header__container {
width: 1200px;
height: 100px;
background-color: #B2DFDB;
margin: 0 auto;
}
.nav__container {
width: 1200px;
height: 300px;
background-color: #4DB6AC;
margin: 0 auto;
}
.section__container {
width: 1200px;
height: 580px;
background-color: #009688;
margin: 0 auto;
}
.footer__container {
width: 1200px;
height: 100px;
background-color: #00796B;
margin: 0 auto;
}
</style>
</head>
<body>
<div id="wrap">
<header id="header">
<div class="header__container"></div>
</header>
<nav id="nav">
<div class="nav__container"></div>
</nav>
<section id="section">
<div class="section__container"></div>
</section>
<footer id="footer">
<div class="footer__container"></div>
</footer>
</div>
</body>
</html>
<!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>레이아웃 유형4</title>
<style>
* {
margin: 0;
padding: 0;
}
#wrap {
width: 100%;
}
#header {
width: 100%;
height: 100px;
background-color: #E0F2F1;
}
#nav {
width: 100%;
height: 300px;
background-color: #80CBC4;
}
#section {
width: 100%;
height: 580px;
background-color: #26A69A;
}
#footer {
width: 100%;
height: 100px;
background-color: #00897B;
}
.container {
width: 1200px;
height: inherit;
background-color: rgba(0,0,0,0.1);
margin: 0 auto;
}
</style>
</head>
<body>
<div id="wrap">
<header id="header">
<div class="container"></div>
</header>
<nav id="nav">
<div class="container"></div>
</nav>
<section id="section">
<div class="container"></div>
</section>
<footer id="footer">
<div class="container"></div>
</footer>
</div>
</body>
</html>
<!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>레이아웃 유형4</title>
<style>
* {
margin: 0;
padding: 0;
}
#header {
height: 100px;
background-color: #E0F2F1;
}
#nav {
height: 300px;
background-color: #80CBC4;
}
#section {
height: 580px;
background-color: #26A69A;
}
#footer {
height: 100px;
background-color: #00897B;
}
.container {
width: 1200px;
height: inherit;
background-color: rgba(0,0,0,0.1);
margin: 0 auto;
}
/* 미디어쿼리 */
@media (max-width: 1300px){
.container {
width: 96%;
}
}
@media (max-width: 768px){
.container {
width: 100%;
}
}
</style>
</head>
<body>
<div id="wrap">
<header id="header">
<div class="container"></div>
</header>
<nav id="nav">
<div class="container"></div>
</nav>
<section id="section">
<div class="container"></div>
</section>
<footer id="footer">
<div class="container"></div>
</footer>
</div>
</body>
</html>