.png)
카피캣영역인 유튜브 메인화면
.png)
유튜브 메인화면 카피캣 완료된 모습
<!-- index.html언어 -->
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>유튜브 튜토리얼</title>
<link rel="stylesheet" type="text/css" href="css/style.css">
</head>
<body>
<div id="wrapper">
<nav id="youtube_top_nav">
</nav>
<nav id="youtube_left_nav">
<div id="youtube_left_content">
</div>
</nav>
<main role="main" id="youtube_main">
</main>
</div>
</body>
</html>
<!-- style.css언어 -->
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html, body {
width: 100%;
height: 100%;
}
ol, ul {
list-style: none;
}
a {
text-decoration: none;
}
img {
vertical-align: top;
}
button {
background-color: transparent;
border: none;
}
input {
outline: none;
border: none;
}
input:focus {
outline: none;
}
#wrapper {
position: relative;
width: 100%;
height: 100%;
min-width: 1320px;
}
#youtube_top_nav {
position: fixed;
width: 100%;
height: 56px;
background-color: #212121;
}
#youtube_left_nav {
overflow-y: auto;
overflow-x: hidden;
position: fixed;
width: 240px;
background-color: #212121;
top: 56px;
left: 0;
bottom: 0;
}
#youtube_left_content {
position: absolute;
width: 225px;
height: 100%;
background-color: gray;
}
#youtube_main {
position: absolute;
left: 240px;
top: 56px;
right: 0;
bottom: 0;
background-color: gray;
}
오늘은 유튜브카피캣에 관한 강의였는데, 짧았지만 간격배치에 대해 공부할수있었다.
딱히 이번강의에서 힘든점은 없었다.
오늘도 언제나 그러하듯이 연습을 하여야 겠다.