과제를 연습하던 중 여러가지,,, 실패가 있었다...
앞으로도 헷갈릴 것 같아서 기록을 해보려고 한다.
으악 이거 너무 어려워 ㅠㅠ
👇 초기 모습

(HTML)
<!DOCTYPE html>
<html>
<head>
<title>코드잇</title>
<meta charset="utf-8">
<link rel="stylesheet" href="css/styles.css">
<link href="https://fonts.googleapis.com/earlyaccess/notosanskr.css" rel="stylesheet">
</head>
<body>
<div id="navbar">
<a id="logo" href="#">
<img src="images/logo.png" height="25">
</a>
</div>
<div class="hero-header">
<div class="info">
<h1><b>코딩</b>, 스펙이 아니라 <b>필수</b>입니다.</h1>
<h2>코드잇은 코딩을 통해 생각하는 법을 가르칩니다.</h2>
<a href="#">더 알아보기</a>
</div>
</div>
</body>
</html>
먼저 nav바 부분 - 선생님께서 해결한 방식이다.
#navbar {
padding: 0 20px;
border-bottom: 1px solid #eee;
overflow: hidden;
background-color: white;
box-shadow: 0 1px 3px 0 rgba(0,0,0,0.50);
height: 60px;
}
#logo {
font-family: serif;
float : normal;
display: inline-block;
line-height : 60px;
}
#logo img {
vertical-align : middle;
}
nav바 부분 - 내가 알아보고 해결한 방식.
#navbar {
padding: 0 20px;
border-bottom: 1px solid #eee;
overflow: hidden;
background-color: white;
box-shadow: 0 1px 3px 0 rgba(0,0,0,0.50);
height: 60px;
line-height : 60px;
}
#logo {
font-family: serif;
display: inline-block;
line-height: normal;
vertical-align : middle;
}
중앙부분의 글자 조정 ! - 동일했다
.hero-header {
background-image: url("../images/hero_image.jpg");
background-size: cover;
background-position: center center;
height: 670px;
line-height : 670px;
text-align: center;
}
.hero-header .info {
display : inline-block;
vertical-align : middle;
line-height : normal;
}

👇 결과
