티스토리 뷰

<!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>Layout1</title>
<!-- 파비콘 -->
<link rel="shortcut icon" href="../assets/face/layout.png">
<link rel="apple-touch-icon-precomposed" href="../assets/face/layout.png">
<link rel="icon" href="../assets/face/layout.png" sizes="128x128">
<!-- style -->
<style>
* {
margin: 0;
padding: 0;
}
body {
background-color: #FFF3E0;
}
#container {
width: 1200px;
height: 1080px;
margin-left: auto;
margin-right: auto;
}
#header{
width: 1200px;
height: 100px;
background-color: #FAE1B7;
}
#nav {
width: 1200px;
height: 100px;
background-color: #F7ce8b;
}
#aside {
width: 400px;
height: 780px;
background-color: #f4ba61;
float: left;
}
#contents {
width: 800px;
height: 780px;
background-color: #f2ab47;
float: left;
}
#footer {
width: 1200px;
height: 100px;
background-color: #f19d38;
clear: both;
}
</style>
</head>
<body>
<div id="container">
<div id="header"></div>
<div id="nav"></div>
<div id="aside"></div>
<div id="contents"></div>
<div id="footer"></div>
</div>
</body>
</html>
float: left 를 이용한 레이아웃입니다.
반응형
'Layout' 카테고리의 다른 글
| Layout 3-1 (0) | 2022.04.14 |
|---|---|
| 레이아웃 3 (0) | 2022.03.23 |
| 레이아웃 2-1 (0) | 2022.03.03 |
| 레이아웃2 (0) | 2022.03.03 |
댓글
© 2022 babydevelop