\

해병 코딩

728x90
반응형


<!DOCTYPE html>
<html><head><meta charset="UTF-8">
<title> Starbucks Coffee Korea </title>
 <meta name="viewport" content="width=device-width, initial-scale=1.0" />
 
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/reset-css@5.0.1/reset.min.css"/>
<link rel="icon"  href="favicon.png"/>
<!-- 
 - 카카오톡 -->
<meta property="og:type" content="website" />
<meta property="og:site_name" content="Starbucks" />
<meta property="og:title" content="Starbucks Coffee Korea" />
<meta property="og:description" content="스타벅스는 세계에서 가장 큰 다국적 커피 전문점으로, 64개국에서 총 23,187개의 매점을 운영하고 있습니다." />
<meta property="og:image" content="./images/starbucks_seo.jpg" />
<meta property="og:url" content="https://starbucks.co.kr" />

<!--  - 트위터 카드 -->
<meta property="twitter:card" content="summary" />
<meta property="twitter:site" content="Starbucks" />
<meta property="twitter:title" content="Starbucks Coffee Korea" />
<meta property="twitter:description" content="스타벅스는 세계에서 가장 큰 다국적 커피 전문점으로, 64개국에서 총 23,187개의 매점을 운영하고 있습니다." />
<meta property="twitter:image" content="./images/starbucks_seo.jpg" />
<meta property="twitter:url" content="https://starbucks.co.kr" />


<!-- 구글 폰트 -->
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Pangolin&display=swap" rel="stylesheet">

<!-- 구글 아이콘 -->
 <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">

<link href="../css/main.css" rel="stylesheet">
<script src="../js/main.js" type="text/javascript"></script>

</head>



<body>
<!-- HEADER -->

<header>
	<div class ="inner">
		<a href="/" class="logo">
			<img alt="" src="../images/starbucks_logo.png"/>
		</a>
	</div>
</header>
h

</body>
</html>
@charset "EUC-KR";

/* main.css */


body{
	color: yellow;
	font-size: 16px;
	font-weight: 400;
	line-height:1.4;
	font-family: 'Pangolin', cursive;
}

/* 블럭 단위로 가겠다 */
img{
	display: block;	
}

/* HEADER */

header{
	background-color: red;
}

/* 부모가 inner */
header .inner{
	width: 1100px;
	height: 120px;
	background-color: orange;
	margin: 0 auto;
	position: relative;
}

header .logo{
	height: 75px;
	/* 부모꺼를 잡아줌 */
	position: absolute;
	top: 0;
	bottom: 0;
	margin: auto;
}

 


728x90
반응형

이 글을 공유합시다

facebook twitter googleplus kakaoTalk kakaostory naver band