<!DOCTYPE html>
<html>
<head>
<meta charset="EUC-KR">
<title>Portfolio</title>
<style>
/*reset*/
*{margin: 0px; padding: 0px;}
li{list-style: none;}
a{text-decoration: none;}
/*common*/
.wrapper{width: 1170px; margin: 0 auto;}
.clearfix{content: ''; display: block; clear: both;}
/*header*/
header{height: 75px; background-color: #006F84; border: 1px solid #253342;
positon: fixed; width: 100%; z-index: 9999; top: 0; left: 0;}
h1{color: white; line-height: 75px; float: left;}
.menu{float: right;}
.menu li{float: left;}
.menu a{line-height: 75px; color: white; padding: 0 15px; display: block;}
</style>
</head>
<body>
<header>
<div class="wrapper">
<h1>Portfolio</h1>
<nav>
<ul class="menu">
<li><a href="#">home</a></li>
<li><a href="#">about me</a></li>
<li><a href="#">photo</a></li>
<li><a href="#">time</a></li>
</ul>
</nav>
</div>
</header>
</body>
</html>
출처: http://ironsky.tistory.com/21
'programing > html5&css3' 카테고리의 다른 글
html - z-index (0) | 2018.04.04 |
---|---|
html/css - id와 class, 우선적용 순위 (0) | 2018.04.04 |
앱 웹 전화, 문자, 이메일, 영상전화 링크 걸기 (0) | 2018.03.22 |
CSS3 - 고정된 사이드바 메뉴 만들기 (0) | 2018.03.14 |
CSS3 - button 버튼 왼쪽 정렬 (1) | 2018.03.14 |